Hello all, long time answer giver in the perl forums, first time question asker in the Java forum
I am designing my application and I am trying to get a solid handle on how JDBC handles database connection pooling. With Apache:BI I know that each database has its own handle and these handles are cached. This means that a mod_perl process can open and cache however many different databases I tell it to open but EACH database is individually cached.
I have not dug into this too much with JDBC yet but is this essentially how it is handled as well? Or does JDBC connect to the service and pool at that level?
If it is pooling at the database level like Apache:BI does has anyone seen what sorts of limitations in terms of how many persistant handles can stick around?
Generally speaking I am trying to decide whether to create a database instance per customer or if I should have one large database with a customer identifier. I know with Apache:BI its much more efficient to have the one large DB but it adds a layer of complexity to the code since every object has to have a customer context available to every method.
Not sure if it matters but I am using Firebird for my backend.
Thanks!
I am designing my application and I am trying to get a solid handle on how JDBC handles database connection pooling. With Apache:BI I know that each database has its own handle and these handles are cached. This means that a mod_perl process can open and cache however many different databases I tell it to open but EACH database is individually cached.
I have not dug into this too much with JDBC yet but is this essentially how it is handled as well? Or does JDBC connect to the service and pool at that level?
If it is pooling at the database level like Apache:BI does has anyone seen what sorts of limitations in terms of how many persistant handles can stick around?
Generally speaking I am trying to decide whether to create a database instance per customer or if I should have one large database with a customer identifier. I know with Apache:BI its much more efficient to have the one large DB but it adds a layer of complexity to the code since every object has to have a customer context available to every method.
Not sure if it matters but I am using Firebird for my backend.
Thanks!