What is the difference between nhibernate and entity framework in batching?
Asked Answered
C

2

2

I want to select one of the above orm. What is the difference between nhibernate and entity framework in batching?

Candor answered 22/5, 2011 at 7:54 Comment(2)
How do you mean the difference in batching? What characteristics are you interested in?Cherry
Is EF supports batching operations?Candor
S
4

NHibernate can:

  • Send multiple updates/inserts/deletes at once
  • Load multiple proxies of a type at once
  • Load multiple collections of a type at once
  • Execute object oriented DML statements
  • Manually group queries in a single roundtrip (multiqueries, futures)

EF can:

  • None of the above
Strife answered 22/5, 2011 at 11:51 Comment(0)
K
3

The difference is that EF natively doesn't have any command batching so every update, insert or delete is executed in separate round trip to the database - but in my previous question are some links to workarounds. EF also doesn't have any alternative to NHibernate future queries (way to batch multiple queries to single database round trip).

Kitty answered 22/5, 2011 at 7:59 Comment(2)
Is this still the case 2 years later with the lack of future queries?Anticipative
@MikeCole: If we talk about EF the answer is yes. There are some open source projects making this little bit better but it is still far from real built-in solution.Kitty

© 2022 - 2024 — McMap. All rights reserved.