-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sstable: use block cache / readhandle for downloads
Previously, if we had some blocks in the block cache at the time of starting a download, we would still read all blocks from object storage. This was pretty wasteful, especially for index/footer/etc blocks that are more likely to be in cache. This change threads through the appropriate Reader through sstable.CopySpan, so that the cached blocks can be appropriately used. Data blocks are also read through the cache if they exist in the cache; if not, we fall back to the old sequence of reading and writing bytes blindly from object storage to local disk as fast as IO allows us to. Fixes #3758.
- Loading branch information
Showing
4 changed files
with
84 additions
and
37 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