Skip to content

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