P
Patrice
This is also currently what I do (though the connection is private to the
the layer).
I'm looking at this thread as I've done some investigation about this once.
When connection pooling is enabled the time for opening/closing a connection
is really very short. I considered then to open/close the connection on a
per call basis.
The benefit I see is that you don't have to include in your debug release a
check to see if all connections are properly closed. Also it allows to close
the connection generally earlier in the page (or at least as soon as
possible) and you could even imagine in some cases a lengthy thing that
don't need the DB and another page could use a connection in between.
IMO definitely worth to consider. I would like to ear from someone that
already open/close on each call...
TIA
Patrice
--
the layer).
I'm looking at this thread as I've done some investigation about this once.
When connection pooling is enabled the time for opening/closing a connection
is really very short. I considered then to open/close the connection on a
per call basis.
The benefit I see is that you don't have to include in your debug release a
check to see if all connections are properly closed. Also it allows to close
the connection generally earlier in the page (or at least as soon as
possible) and you could even imagine in some cases a lengthy thing that
don't need the DB and another page could use a connection in between.
IMO definitely worth to consider. I would like to ear from someone that
already open/close on each call...
TIA
Patrice
--