workloadbasedlearning

package
v1.1.0-beta.0...-1fa2955 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL