-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat: add request id as comment to all queries #44884
Conversation
Silly me, expecting various SQL implementations to support the same comment format... |
After todays call with the db expert we could even consider this for selects (if the query cache is disabled), which would be recommended anyways these days for MySQL/MariaDB. |
2db5a5d
to
885e813
Compare
So there would be no downside for always having this on? |
I think we should not have the request id there by default but could consider it as a config option if an admin is sure that they have the query cache enabled, otherwise there might be quite an overhead invalidating it with every query. |
885e813
to
39317c2
Compare
Signed-off-by: Robin Appelman <robin@icewind.nl>
39317c2
to
8c10c78
Compare
Put the request id behind the |
/backport to stable29 |
/backport to stable28 |
/backport to stable27 |
Having the request id in the sql can be useful for various database debugging