Hi to all.
I can add some more information about this:
The big diference between NH and EF are in the materialize or
hidrate time!
I don't have the solution for this, but I can add more information to
try solving it...
I run the jetBrains dot Trace, and what I found was the Hidrate method
to
Ricardo,Can you explain which is the real life use-case where you need to
upload 100K entities ?
Or your intention is only waste time in something you never need ?
2009/9/3 Ricardo Pedro soferrag...@gmail.com
There is a similir discussion here:
Are you creating a new SessionFactory each run? (SLOOOW!!!)
You should use a single instance SessionFactory and just create new
sessions.
F.B. ten Kate wrote:
Hello there, im currently looking at some differences between both
ORM's and to get a good feel for both i try to query from
Yes i am atm, since it's just a quit check to run a query, but would
this explain the SQL executing this slowly?
I know i'm not using any best practises and things, this is the
first thing im doing with both NHibernate and EF.
Here is the code running it.
Configuration cfg = new
The sql is not executing slowly, the building of the sessionfactory is
slow. Start your timer after buildsessionfactory and compare again.
On Wed, Aug 12, 2009 at 2:01 PM, F.B. ten Katefolk...@bluenode.nl wrote:
Yes i am atm, since it's just a quit check to run a query, but would
this explain
Like i said, the timer is in SQL Profiler. In otherwords not in the
code, but i also have the following bits in there to compare.
DateTime start = DateTime.Now;
IListDebiteur lijst = session.CreateCriteria(typeof
(Debiteur)).ListDebiteur();
DateTime stop =
Ow, little extra info, it's 39 Records i'm querying, which
obviously is kinda alot.
On 12 aug, 14:12, F.B. ten Kate folk...@bluenode.nl wrote:
Like i said, the timer is in SQL Profiler. In otherwords not in the
code, but i also have the following bits in there to compare.
Would you mind
1 - Sharing the smallest bit that reflects the problem as a whole ( your
code under test, your tests, and mappings)
2 - Running a code profiler and share the screenshot of it (to pinpoint the
bottleneck)?
And a question, when you are talking about the times in sql profiler, do you
practice?
Date: Wed, 12 Aug 2009 05:26:29 -0700
Subject: [nhusers] Re: NHIbernate performance vs Entity Framework
From: folk...@bluenode.nl
To: nhusers@googlegroups.com
Changed the code a little, i'm now creating one session, and one
factory on the Load. However i use
If you are playing starting from a button click (as you said) I sure you
are doing more than one thing wrong with both NH and EF.Btw use what is more
easy to use for your needs without waste so much time testing only the
upload of 39 entities (that mean testing something you will never gonna
: [nhusers] Re: NHIbernate performance vs Entity Framework
From: folk...@bluenode.nl
To: nhusers@googlegroups.com
Changed the code a little, i'm now creating one session, and one
factory on the Load. However i use a button_click to trigger the
actual querying..
First time i
veno...@hotmail.com wrote:
Maybe if you show us your configuration file and mapping files we can
help more.
-Carlos
Practice makes perfect, but if no one is perfect, why practice?
Date: Wed, 12 Aug 2009 05:26:29 -0700
Subject: [nhusers] Re: NHIbernate performance vs
file and mapping files we can
help more.
-Carlos
Practice makes perfect, but if no one is perfect, why practice?
Date: Wed, 12 Aug 2009 05:26:29 -0700
Subject: [nhusers] Re: NHIbernate performance vs Entity Framework
From: folk...@bluenode.nl
To: nhusers
configuration file and mapping files we
can
help more.
-Carlos
Practice makes perfect, but if no one is perfect, why practice?
Date: Wed, 12 Aug 2009 05:26:29 -0700
Subject: [nhusers] Re: NHIbernate performance vs Entity
Framework
From: folk...@bluenode.nl
F.B. ten Kate folk...@bluenode.nl writes:
[session vs. stateless session]
Well wouldn't NHibernate be slow _every_ time i run this query then?
Not necessarily. I don't know the exact overhead, but the default,
stateful session uses caching mechanisms, so maybe filling the cache
is slow.
I
15 matches
Mail list logo