MCPcopy Create free account
hub / github.com/arkdb/inception / optimize_cond

Function optimize_cond

sql/sql_optimizer.cc:8235–8306  ·  view source on GitHub ↗

Optimize conditions by a) applying transitivity to build multiple equality predicates (MEP): if x=y and y=z the MEP x=y=z is built. b) apply constants where possible. If the value of x is known to be 42, x is replaced with a constant of value 42. By transitivity, this also applies to MEPs, so the MEP in a) will become 42=x=y=z. c) remove conditions that ar

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

optimizeMethod · 0.85

Calls 6

build_equal_itemsFunction · 0.85
propagate_cond_constantsFunction · 0.85
print_whereFunction · 0.85
remove_eq_condsFunction · 0.85
addMethod · 0.45
has_subqueryMethod · 0.45

Tested by

no test coverage detected