-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: expose the number of BatchRequests issued by the fetchers #83365
Conversation
2a48a49
to
fa15748
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, 32 of 32 files at r2, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @michae2)
Given the recent cleanup of lifecycles of different fetcher objects, we can simplify the way we track the number of bytes read by the cFetcher. Previously, when the cFetcher was used for the index joins, we would call `StartScanFrom` which would re-create the underlying KVFetcher, but now a single object is used throughout the whole operation, so we can just ask it directly for this statistic. We still close the cFetcher eagerly in some cases, so we still need to store the statistic explicitly in such cases. Release note: None
This commit teaches `row.KVFetcher` to track the number of BatchRequests issued to perform the reads and then exposes this information along side other execution statistics like the number of bytes read. I imagine that this can be handy in some cases, but even more so with the increased usage of the streamer. Release note (sql change): A new execution statistic that tracks the number of gRPC calls issued to perform the read operations has been added to EXPLAIN ANALYZE output. It exposes low-level details that might aid with debugging the performance of queries for power users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased to resolve the merge conflict.
TFTR!
bors r+
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @cucaroach and @michae2)
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
bors r+ |
Already running a review |
Build succeeded: |
colfetcher: simplify tracking the number of bytes read
Given the recent cleanup of lifecycles of different fetcher objects, we
can simplify the way we track the number of bytes read by the cFetcher.
Previously, when the cFetcher was used for the index joins, we would
call
StartScanFrom
which would re-create the underlying KVFetcher, butnow a single object is used throughout the whole operation, so we can
just ask it directly for this statistic. We still close the cFetcher
eagerly in some cases, so we still need to store the statistic
explicitly in such cases.
Release note: None
sql: expose the number of BatchRequests issued by the fetchers
This commit teaches
row.KVFetcher
to track the number of BatchRequestsissued to perform the reads and then exposes this information along side
other execution statistics like the number of bytes read. I imagine that
this can be handy in some cases, but even more so with the increased
usage of the streamer.
Fixes: #81998.
Addresses: #82156.
Release note (sql change): A new execution statistic that tracks the
number of gRPC calls issued to perform the read operations has been
added to EXPLAIN ANALYZE output. It exposes low-level details that might
aid with debugging the performance of queries for power users.