Skip to content
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

Before+after hooks for prepare #13

Open
ivucica opened this issue Sep 7, 2017 · 1 comment
Open

Before+after hooks for prepare #13

ivucica opened this issue Sep 7, 2017 · 1 comment

Comments

@ivucica
Copy link

ivucica commented Sep 7, 2017

When connecting over a high-latency network, it becomes visible in my tracing that Prepare takes a while to execute when using github.com/go-sql-driver/mysql.

Does it sound like it makes sense to add hooks around Prepare, too?

@qustavo
Copy link
Owner

qustavo commented Sep 8, 2017

Hey, @ivucica that would make sense, the problem is that some drivers use Prepare, and some others don't, it's not a trivial problem. I still don't know how to implement that, but if you have an idea, I'd be happy to discuss.

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

No branches or pull requests

2 participants