add filters for SPM baseline capture functionality #15655
Labels
epic/sql-plan-management
priority/P1
The issue has P1 priority.
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Milestone
Development Task
Currently, if
tidb_capture_plan_baselines
is enabled, SPM would capture SQL patterns which occur more than once and build a baseline binding for it if there doesn't exist one. This would be annoying if users enable this feature in product environment, because there may be huge amount of bindings built.We can let users define filter / rules to constraint the capture behavior, e.g, only capture baselines for specified tables, or specified connection.
The text was updated successfully, but these errors were encountered: