pingcap / pingcap/tidb

Optimize the usage of the bind cache

Open
#32,466 0 comments 0 reactions 1 assignee Claimed by @Reminiscent View on GitHub
epic/sql-plan-management sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
Now we use the map as the bind records' cache. But it's dangerous when there are so many bindRecords. It may cause OOM. So we try to optimize it. The specific work items are as follows:
* Support the LRU cache
- [ ] Use the LRU to manage the bind Records' cache
- [ ] Support `show binding_cache status' to show the information about the bindCache.
* Enable/ Disable the binding
- [ ] Support `set binding enable/ disable for {using }`
* Telemetry
- [ ] Support the telemetry for the ``auto capture

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.