on 2011 Feb 16 5:22 PM
I am using SQL Anywhere 11 and have my database running as a service on Windows XP.
The docs only mention connection pooling for the .Net Provider. I am connecting from PowerBuilder using ODBC.
I will have multiple instances of the app connecting at the time using the same exact connection parameters.
Can this be done?
The complete connection string has to be identical. It includes the APPINFO part in which the process id and thread id is mentioned. So in reality connection pooling is only possible if the connection attempt comes from the same thread in the same process.
EDIT: According to this answer by Ian, the above statement is not completely true:
The generated portion of the AppInfo string is ignored when determining if two connection strings are the same for connection pooling. If a user specified AppInfo parameter is specified, that is included in the comparison.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've been not aware of that important restriction (but haven't used pooling, either). - If so, and given the typical synchronous execution of DB requests - why would one single thread ever use several connections to the same database at the same time (except for differentiating between read-only and read/write access)? - I guess then the built-in pooling is primarily useful for applications that use their own thread pool for database access: Then each thread might re-use its "own" pooled connection when the thread gets re-activated. - Or do I have missed the point?
I'm not sure but I guess connection pooling as a general product feature has been introduced with SA 12.
Cf. the new CPOOL connection parameter.
I don't know whether the general ODBC connection pooling (cf. the ODBC Admin's according tab) works with SQL Anywhere (and if so, how well it works).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.