-
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.
33731: opt: handle differently sized plans in the plan cache r=RaduBerinde a=RaduBerinde The plan cache has a simplistic implementation that assumes each entry uses the same fixed amount of memory (larger entries are never added). This change improves the implementation to account for memory usage and allow entries of varying sizes. Adding an entry can evict multiple entries as necessary. The eviction policy is still LRU. We still have a maximum size (128KB) to prevent very large queries from purging large portions of the cache. Release note: None Co-authored-by: Radu Berinde <[email protected]>
- Loading branch information
Showing
3 changed files
with
222 additions
and
62 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
Oops, something went wrong.