Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCalculateCardinalityMaxRow ¶
func WithCalculateCardinalityMaxRow(row int) optimizerOption
func WithCompositeIndexMaxColumn ¶
func WithCompositeIndexMaxColumn(column int) optimizerOption
Types ¶
type OptimizeResult ¶
type Optimizer ¶
func NewOptimizer ¶
func (*Optimizer) Optimize ¶
func (o *Optimizer) Optimize(ctx context.Context, selectStmt *ast.SelectStmt) ([]*OptimizeResult, error)
Optimize give index advice for the select statement.
Click to show internal directories.
Click to hide internal directories.