Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Only prepare statements once #12

Open
snluu opened this issue Feb 10, 2013 · 0 comments
Open

Only prepare statements once #12

snluu opened this issue Feb 10, 2013 · 0 comments

Comments

@snluu
Copy link
Owner

snluu commented Feb 10, 2013

"This is a small optimization: you are preparing a SQL statement on each request, but it would be better if you prepare all your statements when you make your connection, then just use the prepared statement. Each Prepare call is a roundtrip to the database. See the source for details: http://code.google.com/p/go-mysql-driver/source/browse/mysql/connection.go"

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

No branches or pull requests

1 participant