There are a couple of different options for you. I know there was work
being done on generating proxies at compile time for speed
improvements. There's a thread that starts here:
http://groups.google.com/group/nhibernate-development/msg/12f093f0e324c9f9

I'd recommend looking into doing that as I think it would help in your
situation.

 -Will

On Mon, Jan 5, 2009 at 9:00 AM, Bill Pierce <[email protected]> wrote:
>
> What version of NHPG are you using?  Does the exception generate a
> relevant stack trace?  An hour seems excessive, my guess is a bug.
>
> On Fri, Jan 2, 2009 at 1:01 PM, Ross Beehler <[email protected]> wrote:
>>
>> I'm attempting to use NHibernate.ProxyGenerator (NHPG) against our
>> entities and am experiencing an OutOfMemoryException.  We have just
>> over 300 tables/entities and roughly 9300 columns spread across those
>> tables/entities.  We also have many lazy associations between tables
>> (basically both a one-to-many and a many-to-one for every foreign key
>> in the database).  When I kick off NHPG.exe, it runs for quite a while
>> (over an hour) before it crashes.
>>
>> Anyone ever use NHPG for something of this magnitude?  Is there any
>> way to get this to complete in a timely fashion (as we'd have to rerun
>> the process whenever making an entity change)?
>>
>> A little background: we're looking into NHPG to see if it speeds up
>> the initialization time of NHibernate, as we see it take several
>> seconds just to generate the proxies.  If anyone has a comment to
>> whether or not NHPG is even worth using for performance reasons, that
>> would be great.  Note that we don't experience the Medium Trust issue
>> it is originally built to circumvent.
>>
>> Thanks,
>> Ross
>>
>> >
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to