util

package
v0.0.0-...-503c688 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanCacheMatchOpts

type PlanCacheMatchOpts struct {
	// paramTypes stores all parameters' FieldType, some different parameters may share same plan
	ParamTypes []*types.FieldType
	// limitOffsetAndCount stores all the offset and key parameters extract from limit statement
	// only used for cache and pick plan with parameters in limit
	LimitOffsetAndCount []uint64
	// HasSubQuery indicate whether this query has sub query
	HasSubQuery bool
	// StatsVersionHash is the hash value of the statistics version
	StatsVersionHash uint64

	// Below are some variables that can affect the plan
	ForeignKeyChecks bool
}

PlanCacheMatchOpts store some property used to fetch plan from plan cache The structure set here is to avoid import cycle

Jump to

Keyboard shortcuts

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