Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Use Prepared Statements #5

Open
ramonberrutti opened this issue May 20, 2020 · 0 comments
Open

Use Prepared Statements #5

ramonberrutti opened this issue May 20, 2020 · 0 comments

Comments

@ramonberrutti
Copy link

To gain performance for some queries, we can use prepared statements on supported databases.

Some idea is to save the prepared query (*sql.Stmt) on a map (with mutex :) ).
The key of the map can be a hash of the query or something faster to calculate this key. (For example the RPC method).

TODO: Add an example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant