also, if your first call to NHibernateHelper.OpenSession happens to create
the SessionFactory lazily when it is first needed, then this is probably
where the slowdown is

if you execute a second query in a different session to retrieve these 5
records, is it still slow?

On Sun, Aug 9, 2009 at 1:15 PM, Belvasis <[email protected]> wrote:

> Maybe you have to much log details enabled. Check the  <log4net> section
> and <level value=""> in your config file.
>
> 2009/8/8 ksang <[email protected]>
>
>
>> dear sir,
>>
>> l have downloaded nhibernate 2.0.1 and testing on it, it takes about
>> 10sec to load 5 records into Product object which i think it's too
>> slow. may i know any things i have left out or i should do to improve
>> the performance?? any helps would be appreciated. thanks.
>>
>>      IList plist;
>>      using (ISession s = NHibernateHelper.OpenSession())
>>      {
>>        plist = s.CreateCriteria(typeof(Product)).List() as IList;
>>      }
>>
>>
>> regards
>> ks
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to