protoc-gen-map icon indicating copy to clipboard operation
protoc-gen-map copied to clipboard

Use Prepared Statements

Open ramonberrutti opened this issue 4 years ago • 0 comments

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.

ramonberrutti avatar May 20 '20 21:05 ramonberrutti