Skip to content

Configurable LRU CacheLimit + Ability to not use prepared stmts #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

jfbramlett
Copy link

Experienced a prod issue brought on by too many active prepared stmts. This driver was creating a prepared stmt for pretty much every request, this PR does a couple of things to try and address that. First, it provides a facility for limiting the prepared stmt cache size. Secondly, it introduces a flag on the datasource which can be used to not use prepared statements at all, included at the go level (see option to interpolate args here).

evanphx and others added 23 commits March 6, 2014 15:47
Handle IP/Ip in field name.
This commit adds the `OpenFunc()` function that allows us to handle how
the DB connection will be opened. You can pass any function that has the
same signature as `sql.Open()` and it'll use it to start the connection.

The idea is to open the connections with DataDog [SQL wrapper][1] to
start collecting APM metrics for our queries.

[1]: https://godoc.org/gopkg.in/DataDog/dd-trace-go.v1/contrib/database/sql
This commit adds `db/trx.QueryContext()` methods that are similar to
`Query()` but accept a context (same as the STD `sql.QueryContext`).

This will allow us to send tracing information to queries that will be
tied to a given span.

* https://golang.org/pkg/database/sql/#DB.QueryContext
Add `QueryContext` methods for Jet objects
Clubhouse-148415: Tweaking the mapping of complex type to support setting to blank
…ace-nil-not-being-nil

Clubhouse-148415: fix issue with interface nil not being nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants