nhibernate-core
nhibernate-core copied to clipboard
NH-3329 - NHibernate.Engine.TwoPhaseLoad is slow @ done materializing entity
Praveer kumar created an issue — :
Hi,
It is a weird performance issue.
I am calling my method concurrently for 25 users with same values as input. The expected time to return the result should be almost same (or little variation).
I am using Alachisoft - NCache for 1st and 2nd level Cache.
But the results are highly deviated from each responses. Minimum is 0.8 second and max is 14 seconds.
When I started full log using Log4Net, I found there are many instances of "done materializing entity" from "NHibernate.Engine.TwoPhaseLoad" which takes 2-3 seconds.
Please find the attached screenshot of the log.
for 1 request , log between id = 60756460 and 60756462 is very fast. But in other request 60722053 and 60722056 is very slow (~5 seconds). Though it should be same (little deviation)
Any Idea?


Oskar Berggren added a comment — :
This is rather vague for a bug report and might have been better suited for the mailing lists. Can you create a test case that demonstrates the issue?