Optimize the usage of the bind cache
Open
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
Assessment
This issue has not been assessed yet.