package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
AdviseIndexes is the entry point for the index advisor.
CollectDNFColumnsFromQuery parses the given Query text and returns the DNF columns.
CollectIndexableColumnsForQuerySet finds all columns that appear in any range-filter, order-by, or group-by clause.
CollectIndexableColumnsFromQuery parses the given Query text and returns the indexable columns.
CollectOrderByColumnsFromQuery parses the given Query text and returns the order-by columns.
CollectSelectColumnsFromQuery parses the given Query text and returns the selected columns.
CollectTableNamesFromQuery returns all referenced table names in the given Query text.
FilterInvalidQueries filters out invalid queries from the given query set.
FilterSQLAccessingSystemTables filters out queries that access system tables.
GetOptions gets the values of options.
NewColumn creates a new column.
NewColumns creates new columns.
NewIndex creates a new index.
NewIndexWithColumns creates a new index with columns.
NewOptimizer creates a new Optimizer.
NormalizeDigest normalizes the given Query text and returns the normalized Query text and its digest.
ParseOneSQL parses the given Query text and returns the AST.
RestoreSchemaName restores the schema name of the given Query set.
SetOption sets the value of an option.
SetOptions sets the values of options.
TestKey is the key for test context.
# Constants
OptMaxIndexColumns is the option name for the maximum number of columns in an index.
OptMaxNumIndex is the option name for the maximum number of indexes to recommend for a table.
OptMaxNumQuery is the option name for the maximum number of queries to recommend indexes.
OptModule is the module name for index advisor options.
OptTimeout is the option name for the timeout of index advisor.
# Variables
AllOptions is the list of all options.
QueryPlanCostHook is used to calculate the cost of the query plan on this sctx.
# Structs
Column represents a column.
ImpactedQuery represents the impacted query.
Index represents an index.
IndexDetail represents the detail of the index.
IndexSetCost is the cost of a index configuration.
Option is the option for the index advisor.
Query represents a Query statement.
Recommendation represents the result of the index advisor.
WorkloadImpact represents the workload impact.
# Interfaces
Optimizer is the interface of a what-if optimizer.