I am profiling my nhibernate use with ayende's nhprof. I have an
alert that I am making too many db calls per session due to the fact
that I am loading a lot of data that I get from a feed into my
database.
I have a monorail web app, using ActiveRecord and Windsor, and
configured to use SessionScopeWebModule to give me a session per
request.
I want to be able to grab the current nhibernate session, set the
batch size, but the problem I am having is figuring out how to obtain
the current nhibernate session in order to set it?
I have seen code like this
ISession session = SessionScope.Current.GetSession(object key);
but what is the key that it is expecting? Is this the way to get the
nhibernate session? What am I missing?
A code sample would be helpful as I am not completely familar with all
the mr/ar api.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---