package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
BuildOptAndHypTableMaps builds a HypotheticalTable for each table in indexCandidates.
FindIndexCandidateSet returns a map storing potential indexes for each table referenced in a query.
FindRecs finds index candidates that are scanned in an expression to determine a statement's index recommendation set.
# Constants
TypeAlterIndex represents index recommendation ALTER INDEX...VISIBLE.
TypeCreateIndex represents index recommendation CREATE INDEX.
TypeReplaceIndex represents index recommendation CREATE INDEX followed by DROP INDEX.
# Structs
HypotheticalTable is a wrapper around cat.Table, used for creating index recommendations.
Rec represents an index recommendation in the form of a SQL statement(s) that can be executed to apply the recommendation.
# Type aliases
Type represents the type of index recommendation for Rec.