Add the ability to pre-create all the SQLConnection objects in the pool #4

Open
probertson opened this Issue May 12, 2010 · 0 comments

Comments

Projects
None yet
1 participant
Owner

probertson commented May 12, 2010

Currently the design for the SQLConnection pooling is to use a deferred instantiation model, where SQLConnection objects are only created and added to the pool when they're actually needed (i.e. when a statement execution is requested and there are no SQLConnection objects available).

This could probably be something like this:
SQLRunner.initializePool(resultHandler:Function):void;

It could be valuable to have the option of forcing all the SQLConnection objects to be created. This would be useful when you know that at some point you'll need most or all the connections simultaneously, and you have some "idle" time beforehand. (Although other statements could continue to execute while the pool is initializing.)

There would be no benefit to initializing the pool immediately before running a large set of statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment