MCPcopy Create free account
hub / github.com/TanStack/db / supportsRangeOptimization

Method supportsRangeOptimization

packages/db/src/indexes/base-index.ts:78–78  ·  view source on GitHub ↗

* Whether range lookups (gt/gte/lt/lte) on this index can be trusted to * return every matching key. Range traversal relies on the index ordering, so * it is unsafe when the index uses a custom comparator, whose order may not * match the WHERE evaluator's relational operators. Callers must

()

Source from the content-addressed store, hash-verified

76 * a full scan when this is `false`.
77 */
78 get supportsRangeOptimization(): boolean
79
80 matchesField: (fieldPath: Array<string>) => boolean
81 matchesCompareOptions: (compareOptions: CompareOptions) => boolean

Callers

nothing calls this directly

Implementers 1

ReverseIndexpackages/db/src/indexes/reverse-index.

Calls

no outgoing calls

Tested by

no test coverage detected