fixcontrol

package
v1.1.0-beta.0...-68d6b99 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Fix52592 controls whether to disallow fast path for Get and BatchGet.
	// Fast path does not support column projection, so we need to disable it when column projection is required.
	// Here are the common cases that column projection is required:
	// 1. Wide tables with many columns, where applications only query a few columns.
	// 2. JSON fields with large column values, where queries may not necessarily retrieve the values of JSON columns
	//    or only extract specific small JSON content.
	// By default, fast path is enabled, when it's disabled, the optimizer will fallback to coproccessor.
	// It should be only disabled when fast path is more expensive than coprocessor.
	// See #52592
	Fix52592 uint64 = 52592
	// Fix33031 controls whether to disallow plan cache for partitioned
	// tables (both prepared statments and non-prepared statements)
	// See #33031
	Fix33031 uint64 = 33031
	// Fix43817 controls whether to allow optimizer to evaluate non-correlated sub-queries in the optimization phase.
	// If it is not allowed, the optimizer will return a particular error when encountering non-correlated sub-queries.
	// This fix-control is mainly for Index Advisor.
	Fix43817 uint64 = 43817
	// Fix44262 controls whether to allow to use dynamic-mode to access partitioning tables without global-stats (#44262).
	Fix44262 uint64 = 44262
	// Fix44389 controls whether to consider non-point ranges of some CNF item when building ranges.
	Fix44389 uint64 = 44389
	// Fix44830 controls whether to allow to cache Batch/PointGet from some complex scenarios.
	// See #44830 for more details.
	Fix44830 uint64 = 44830
	// Fix44823 controls the maximum number of parameters for a query that can be cached in the Plan Cache.
	Fix44823 uint64 = 44823
	// Fix44855 controls whether to use a more accurate upper bound when estimating row count of index
	// range scan under inner side of index join.
	Fix44855 uint64 = 44855
	// Fix45132 controls whether to use access range row count to determine access path on the Skyline pruning.
	Fix45132 uint64 = 45132
	// Fix45822 controls whether to eliminate apply operator.
	Fix45822 uint64 = 45822
	// Fix45798 controls whether to cache plans that access generated columns.
	Fix45798 uint64 = 45798
	// Fix46177 controls whether to explore enforced plans for DataSource if it has already found an unenforced plan.
	Fix46177 uint64 = 46177
	// Fix47400 controls whether to allow a rowEst below 1
	Fix47400 uint64 = 47400
	// Fix49736 controls whether to force the optimizer to use plan cache even if there is risky optimization.
	// This fix-control is test-only.
	Fix49736 uint64 = 49736
	// Fix52869 controls whether to disable the limitation that index merge path won't be generated automatically when
	// there exist other single-index access paths that do range scan.
	Fix52869 uint64 = 52869
	// Fix54337 controls whether to apply or not range intersection for index access.
	Fix54337 uint64 = 54337
)

Variables

This section is empty.

Functions

func GetBool

func GetBool(fixControlMap map[uint64]string, key uint64) (value bool, exists bool)

GetBool fetches the given key from the fix control map as a boolean type.

func GetBoolWithDefault

func GetBoolWithDefault(fixControlMap map[uint64]string, key uint64, defaultVal bool) bool

GetBoolWithDefault fetches the given key from the fix control map as a boolean type, and a default value would be returned when fail to fetch the expected key.

func GetFloat

func GetFloat(fixControlMap map[uint64]string, key uint64) (value float64, exists bool, parseErr error)

GetFloat fetches the given key from the fix control map as a float64 type.

func GetFloatWithDefault

func GetFloatWithDefault(fixControlMap map[uint64]string, key uint64, defaultVal float64) float64

GetFloatWithDefault fetches the given key from the fix control map as a float64 type, // and a default value would be returned when fail to fetch the expected key.

func GetInt

func GetInt(fixControlMap map[uint64]string, key uint64) (value int64, exists bool, parseErr error)

GetInt fetches the given key from the fix control map as an uint64 type.

func GetIntWithDefault

func GetIntWithDefault(fixControlMap map[uint64]string, key uint64, defaultVal int64) int64

GetIntWithDefault fetches the given key from the fix control map as an uint64 type, // and a default value would be returned when fail to fetch the expected key.

func GetStr

func GetStr(fixControlMap map[uint64]string, key uint64) (value string, exists bool)

GetStr fetches the given key from the fix control map as a string type.

func GetStrWithDefault

func GetStrWithDefault(fixControlMap map[uint64]string, key uint64, defaultVal string) string

GetStrWithDefault fetches the given key from the fix control map as a string type, and a default value would be returned when fail to fetch the expected key.

func ParseToMap

func ParseToMap(s string) (result map[uint64]string, warnMsgs []string, err error)

ParseToMap parses the user input to an optimizer fix control map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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