Entity / foldkit-entity
maxQueryNodes
const · packages/entity/src/expr/operand.ts:415
const maxQueryNodes: 1000The most nodes a query's predicates may hold once every shared node is
counted on each path that reaches it. Readers read a predicate as a tree:
evaluation once per row, and SQL into text that repeats a shared operand
wherever it appears. So eq(n, n) nested thirty deep is thirty-one objects
and a billion nodes of work. Real queries are tens.