nacarson wrote:
I'm curious, how much overhead did NHibernate add compared to just using ado.net to do the load? Similarly if you did a select query in nhiberante to just retrieve the properties without objects, how different was that?
Well, SqlReader did work (read 200,000 rows five times and fill objects (direct instantiation)) by 3,2 seconds while nHiber did the same by 52 seconds.
Quote:
This is interesting. Can you submit a JIRA issue with your proposed patch? Thanks.
Sergey, the root of the evil in my test was that ID was mapped with nosetter accessor (to prevent direct assignment) so nHiber was using FieldSetter.Set which assign private field by reflection. I solved this issue and did some tests.
Can I send it to you by e-mail? JIRA seems to be a little buggy for me (always says that page is not found)...
BTW, now nHiber do this work by 27 seconds ;) 48% faster...
I'll check if other routines can also be optimised.[/quote]