Cache database connections when using Embedded SQL

Description

Roxie should cached database connections when Embedded SQL is used.

Conclusion

None

Activity

Show:

Richard Chapman February 8, 2016 at 12:21 PM

There are two possible approaches to take, and I'm not sure they really coexist well.

Firstly, I can use a thread variable to reuse multiple connections on the same thread (which will help if a single query connects multiple times to MySQL)

Secondly, I can use a shared connection pool looked up by the connection options, which will help if lots of queries on a Roxie are all doing occasional MySQL calls, but may not work so well if they are doing so many that several threads are doing calls at once.

Not sure what the best approach is at present.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Compatibility

Minor

Fix versions

Pull Request URL

Created February 1, 2016 at 5:06 PM
Updated February 11, 2016 at 3:53 PM
Resolved February 11, 2016 at 3:52 PM