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

Track SQL queries that use prepared statements #11

Open
tsteur opened this issue Oct 19, 2015 · 0 comments
Open

Track SQL queries that use prepared statements #11

tsteur opened this issue Oct 19, 2015 · 0 comments

Comments

@tsteur
Copy link
Member

tsteur commented Oct 19, 2015

If profiling of SQL queries is enabled we could also track SQL queries and average time it took to execute them. The information is written to log_profiling under circumstances anyway. We'd just need a way to figure out which ones were already tracked and to make sure to not send queries that contain any private information (only queries that use bind parameters). We could check if there's a use of ? but still it could be the case that it is a mix of bound parameters and concatenated values...

It is not important but it would be kinda nice to see which queries are executed how often, how fast were they executed and especially to see a history of it.

Of course ideally there are monitoring tools used for such cases

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

No branches or pull requests

2 participants