Hi,
I am statically linking libodbc++.a (and also unixODBC libodbc.a) to my multi-threaded CPP application to access MySQL database. The following versions are used :
libodbc++ = v0.2.3
unixODBC = v2.2.11
MySQL connector = v3.51.21r807
All these 3 packages are configured with '--enable-threads' option during ./configure.
In my CPP application, when one thread queries bulk records (more than 1 million rows) from MySQL, the other threads does not get database connection and just hangs. The other threads get connection only after the first thread completes its query.
FYI, MySQL connector is enabled with connection pooling,
What I am doing wrong. Is there is any special attributes to be enabled to get this done. Any help to resolve this issue will be greatly appreciated.
Regards,
Srini.
I am statically linking libodbc++.a (and also unixODBC libodbc.a) to my multi-threaded CPP application to access MySQL database. The following versions are used :
libodbc++ = v0.2.3
unixODBC = v2.2.11
MySQL connector = v3.51.21r807
All these 3 packages are configured with '--enable-threads' option during ./configure.
In my CPP application, when one thread queries bulk records (more than 1 million rows) from MySQL, the other threads does not get database connection and just hangs. The other threads get connection only after the first thread completes its query.
FYI, MySQL connector is enabled with connection pooling,
What I am doing wrong. Is there is any special attributes to be enabled to get this done. Any help to resolve this issue will be greatly appreciated.
Regards,
Srini.
Comment