@mocanvas/store · function
declare function getIndexablePropertyOf<R extends object>(query: QueryExpression<R>): (keyof R & string) | undefinedThe property this query can be answered from an index on, or undefined
when none of it is indexable.
Only an eq clause narrows to a single index bucket; neq and gt still
need every bucket looked at, so they are no better than a scan. The first
eq wins — the remaining clauses are checked against the records it yields.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.