Skip to content

Add option to log queries only when rows returned/affected >= X#7509

Merged
shlomi-noach merged 5 commits intovitessio:masterfrom
planetscale:jg_querylog
Mar 3, 2021
Merged

Add option to log queries only when rows returned/affected >= X#7509
shlomi-noach merged 5 commits intovitessio:masterfrom
planetscale:jg_querylog

Conversation

@aquarapid
Copy link
Contributor

Re-do of #5938

Signed-off-by: Jacques Grove <aquarapid@gmail.com>
certain number of rows.
Redo of PR vitessio#5938, minimizing type changes this time.

Signed-off-by: Jacques Grove <aquarapid@gmail.com>
@guidoiaquinti
Copy link
Member

Nice! I was actually going to implement something similar and add metrics as well. It could be nice to have a histogram for each digest displaying the query counts by LIMIT.

What do you think about it?

@aquarapid
Copy link
Contributor Author

Yeah, that is somewhat more work. I won't take that on in this PR :-)

Nice! I was actually going to implement something similar and add metrics as well. It could be nice to have a histogram for each digest displaying the query counts by LIMIT.

Signed-off-by: Jacques Grove <aquarapid@gmail.com>
Signed-off-by: Jacques Grove <aquarapid@gmail.com>
@hallaroo hallaroo requested a review from shlomi-noach March 2, 2021 21:48
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach shlomi-noach merged commit 47151ab into vitessio:master Mar 3, 2021
@shlomi-noach shlomi-noach deleted the jg_querylog branch March 3, 2021 05:26
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

Successfully merging this pull request may close these issues.

3 participants