Is Connection Pooling Working Correctly In Subsonic?
I am getting reports that connection pooling is not working in the Subsonic orm when used with sql server on a remote machine. I'm not sure how they are monitoring this, maybe with
Solution 1:
Does this mean that SubSonic's connections are persistent by default?
Solution 2:
I'm not sure about the earlier versions, but in 2.1, AbstractList.Load() already uses LoadAndCloseReader(rdr) wrapped in a using statement.
Solution 3:
This is something i only recently discovered myself after having similar issues.
As Rob said it should not be used like this:
MyTableCollection objCol = new MyTableCollection().Load();
it should be used like:
MyTableCollection objCol = new MyTableCollection();
objCol.LoadAndCloseReader(MyTable.FetchAll());
Post a Comment for "Is Connection Pooling Working Correctly In Subsonic?"