Performance Issue

2009-04-29 Thread Darius Damalakas
I need to create some thousand of records. For each record I have selected a payerCompanyID and recipientCompanyId fields with HQL query (aggregation, summing, ant stuff). Is it possible somehow to insert into database a new Bill record without fetching Company from database? Now i have this:

Re: Performance Issue

2009-04-29 Thread Darius Damalakas
Great! thank you mery much. It also explains why a call to ActiveRecordMediatorCompany.FindByPrimaryKey(0) does not fail, even there is no such Company in the database I even checked NHibernate in action (i've got a June 2008 version). Chapter 4.4.1 Retrieving objects by identifier explains

Re: Performance Issue

2009-04-29 Thread Ken Egozi
you're welcome. On Wed, Apr 29, 2009 at 2:29 PM, Darius Damalakas darius.damala...@gmail.com wrote: Great! thank you mery much. It also explains why a call to ActiveRecordMediatorCompany.FindByPrimaryKey(0) does not fail, even there is no such Company in the database I even checked