GC bind record with deleted status #26191
Labels
epic/sql-plan-management
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
Currently,
DROP GLOBAL BINDING
would only mark the bind as deleted, i.e, it is not physically removed frommysql.bind_info
since we rely on itsupdate_time
column for incremental synchronization of the bind record to all tidb servers. Hence in the long run, the number of rows inmysql.bind_info
would become larger and larger. We decide to internally GC those bind records with deleted status, and theupdate_time
is 10 leases ago, which means that these records are supposed to be synced by all tidb servers.The text was updated successfully, but these errors were encountered: