You should flush after updating let's say 25 objects,
etc... There are
patterns on how to do it if you dig up the Hibernate docs
and books...
sadly, they haven't been translated into NHibernate world
yet, but
most of them are understandable even than.
On 4/25/06, Andrew Mayorov <xor byte-force.com> wrote:
>
> Of course, Peter, everything should go according
to rules. As for
> me, I used only session-per-request pattern. It also
works well except cases
> when in one request I read and update, say, several
hundreds of objects.
> Things slows down, profiler shows that big time is
spend by session
> iterating over the collection of known objects. I had
to manually evict
> objects after processing. So I would say, patterns are
also implies the
> number of objects processed.
>
> > I don't know, we made quite big projects on 0.8.4
version of
> > NHibernate using session-per-conversation pattern
with
> > serializing session for conversations (like from
displaying a
> > form till submitting the changes or during a
wizard, but
> > always dropping the session if user cancelled).
And if you
> > kept all rules that applied for
session-per-conversation
> > pattern, everything worked fine, and the
serialized session
> > wasn't big. However, if you broke the rules of
the pattern,
> > everything was scrued up
> >
> > On 4/25/06, Andrew Mayorov <xor byte-force.com> wrote:
> > >
> > > ...
> > > To be honest, i doubt that serialization
of a session is
> > good idea.
> > > With big amount of objects session already
works not very
> > fast. If i
> > > will try to serialize it during the
transaction, it will
> > start to take ages.
> > >...
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web
services, security?
> Get stuff done quickly with pre-integrated technology
to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nhibernate-development mailing list
> Nhibernate-development lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/
nhibernate-development
>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http:
//sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&
amp;3057&dat1642
_______________________________________________
Nhibernate-development mailing list
Nhibernate-development lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/
nhibernate-development
|