-
Notifications
You must be signed in to change notification settings - Fork 23
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
jfbramlett
wants to merge
23
commits into
eaigner:master
Choose a base branch
from
splice:jfb/add-configurable-max-lru-cachesize
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Configurable LRU CacheLimit + Ability to not use prepared stmts #32
jfbramlett
wants to merge
23
commits into
eaigner:master
from
splice:jfb/add-configurable-max-lru-cachesize
Conversation
This file contains 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
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
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).