Repository navigation
[opt](point query) reduce short circuit lookup cache usage (#67228) - #69020
Merged
Merged
Conversation
) LookupConnectionCache preallocates 32 reusable Blocks for each cached point-query context. For wide tables, these Blocks dominate the cache memory usage, and the overhead grows significantly with the number of client connections. In the current implementation, a Reusable instance is not shared across client connections, and requests within the same connection are executed serially. Therefore, the concurrency of each Reusable instance does not exceed one, making it unnecessary to preallocate 32 Blocks. This change makes the Block pool size configurable and reduces the default size from 32 to 1. If concurrent access is introduced in the future, additional Blocks can still be allocated on demand, while the pool retains only the configured number of idle Blocks. In a real production online point-query workload querying a wide table with about 80 columns through approximately 8,000 client connections, the LookupConnectionCache memory usage on a single BE was reduced from about 10 GB to 1.8 GB. Co-authored-by: TRAE CLI <[email protected]>
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#67228