Tuesday, August 28, 2007

The new entityframework ctp was released. The official statement is here.
It includes the designer, so I'm very curious how this fares against nHibernate! Congratz to the team!

The Devguy does a summary of the features. Read this hilarious piece:

  • In previous CTPs the underlying provider connection was opened when the ObjectContext was constructed and held open for the life of the context—this would create issues, for instance, with databases where licensing was based on the number of concurrently open connections since the connection might be held open for an extended period of time—even when the connection is not being used.  The new model keeps the connection closed as much as possible while still appropriately dealing with transactions and avoiding promotion of those transactions from local to DTC where possible.

Really?

I mean, so, they now no longer keep the connection open all the time and instead have opted to close it when it's not in use..... because of licensing issues??

ROFL. I would think there are better reasons not to keep a connection open for too long, but that's just me.

;-)

Tuesday, August 28, 2007 3:11:10 PM (Romance Standard Time, UTC+01:00)
Isn't it more about when to initially *open* the connection than about when and whether to close it?
Thomas Broyer
Tuesday, August 28, 2007 6:08:06 PM (Romance Standard Time, UTC+01:00)
No, neither are issues about which you would even think one minute: you always keep your connection open as short as possibly. Which means, open late, close early. It is ludicrous to optimize this because of licensing issues, instead of best practices ;-)
Ruurd Boeke
Friday, August 31, 2007 10:53:22 PM (Romance Standard Time, UTC+01:00)
Maybe the database vendor is just encouraging best practices by licensing based on concurrent open connections ;)
Tuesday, September 18, 2007 11:15:34 AM (Romance Standard Time, UTC+01:00)
FYI, NHibernate has been doing the same since 1.2
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):