protoc-gen-map
protoc-gen-map copied to clipboard
Use Prepared Statements
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.