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 390000 entities (that mean testing something you will never gonna
do in a real app)

2009/8/12 F.B. ten Kate <folk...@bluenode.nl>

>
> Well i'm justing "playing" around to justify us going for NHibernate
> or EF as our ORM. Personally from what i've read i'd prefer NHibernate
> but when basically just trying to retrieve the same amount of records
> in both tech's (trying to see which is easier to understand and
> supports the features we require) i noticed that EF was easily 4 times
> as fast as NHibernate, which didn't seem right.
>
> Personally i think i'm doing something wrong and i'd verymuch like to
> know what so i can make sure i won't do that when actually developing
> on a project.
>
> Basically i'd like to not have to show my manager that NHibernate is
> this slow the first time it has to run a query, and if i do have to
> show that i'd like to be able to give a reasonable explaination as to
> why it is.
>
> Loading this many records isn't unlikely in the project i'll have to
> implement it in btw.
>
> On 12 aug, 14:39, Fabio Maulo <fabioma...@gmail.com> wrote:
> > which is the target of what you are doing ?
> >
> > 2009/8/12 F.B. ten Kate <folk...@bluenode.nl>
> >
> >
> >
> >
> >
> > > Well wouldn't NHibernate be slow _every_ time i run this query then?
> > > if it has to create the objects? After all it has no problems doing so
> > > the 2nd time i click the button. Also afaik EF also has to create
> > > these objects.
> >
> > > I'm willing to give the stateless session a try though, how would i
> > > implement that?
> >
> > > On 12 aug, 14:36, jobsamuel <samu...@gmail.com> wrote:
> > > > I saw a similar thread sometime back in this forum where it was a
> > > > similar issue. the query was fast but NH was taking long time to
> > > > create the entities (there was a large number of entities being
> loaded
> > > > in the same query).
> > > > I dont remember the outcome of the discussion but I remember some
> > > > suggestion of using stateless session.
> >
> > --
> > Fabio Maulo
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to