-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
72965: catalog/tabledesc: calculate KeysPerRow precisely for secondary indexes r=yuzefovich a=yuzefovich Previously, we would say that a secondary index with a STORING clause might have the same number of KVs per row as there are column families in the table. However, this is not as precise as possible - namely, the secondary index always uses the 0th column family, but 1st, 2nd, etc column family is only used if at least one column from the family is in the STORING clause (if not, that column family doesn't get a KV in the secondary index). This observation allows us to compute `KeysPerRow` precisely which then allows us to set smaller limits on the BatchRequests in the fetchers. Fixes: #72739 Release note: None 73068: kv,sql: fix some nilness lint errors r=tbg a=rickystewart The `nilness` linter caught these cases. We remove some unnecessary nilness checks. Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
6 changed files
with
62 additions
and
20 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