Configurable LRU CacheLimit + Ability to not use prepared stmts#32
Open
jfbramlett wants to merge 23 commits intoeaigner:masterfrom
Open
Configurable LRU CacheLimit + Ability to not use prepared stmts#32jfbramlett wants to merge 23 commits intoeaigner:masterfrom
jfbramlett wants to merge 23 commits intoeaigner:masterfrom
Conversation
expose sql.Tx.Exec on jet.Tx
add nil check
Handle some special cases
Handle IP/Ip in field name.
Handle URL/Url
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
Add `OpenFunc()` function
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).