Documentation ¶
Overview ¶
Package workloadbasedlearning implements the Workload-Based Learning Optimizer. The Workload-Based Learning Optimizer introduces a new module in TiDB that leverages captured workload history to enhance the database query optimizer. By learning from historical data, this module helps the optimizer make smarter decisions, such as identify hot and cold tables, analyze resource consumption, etc. The workload analysis results can be used to directly suggest a better path, or to indirectly influence the cost model and stats so that the optimizer can select the best plan more intelligently and adaptively.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle struct { }
Handle The entry point for all workload-based learning related tasks
func NewWorkloadBasedLearningHandle ¶
func NewWorkloadBasedLearningHandle() *Handle
NewWorkloadBasedLearningHandle Create a new WorkloadBasedLearningHandle WorkloadBasedLearningHandle is Singleton pattern
func (*Handle) HandleReadTableCost ¶
func (Handle *Handle) HandleReadTableCost()
HandleReadTableCost Start a new round of analysis of all historical read queries.