forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
83365: sql: expose the number of BatchRequests issued by the fetchers r=yuzefovich a=yuzefovich **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, 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 **sql: expose the number of BatchRequests issued by the fetchers** 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. Fixes: cockroachdb#81998. Addresses: cockroachdb#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. Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
32 changed files
with
291 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.