[query] Include index flags in algebrized query #137
Labels
No labels
A-build
A-cli
A-core
A-design
A-edn
A-ffi
A-query
A-sdk
A-sdk-android
A-sdk-ios
A-sync
A-transact
A-views
A-vocab
P-Android
P-desktop
P-iOS
bug
correctness
dependencies
dev-ergonomics
discussion
documentation
duplicate
enhancement
enquiry
good first bug
good first issue
help wanted
hygiene
in progress
invalid
question
ready
size
speed
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/mentat#137
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This ticket is vague because the Clojure implementation doesn't do this, I didn't see a framework for maintaining this information in the initial algebrizer landing (see #243), and I'm not sure what it'll entail.
The general problem is that Mentat maintains certain SQLite indices, namely the AVET and VAET indices, based on per-row flags in the SQL store. What that means is that certain query types, including ones like
will be efficient only if the generated SQL constrains the index flags (here,
WHERE index_avet = 1
) as appropriate.In the DataScript implementation, the form of the pattern itself was used to choose which index to walk at query time. This ticket tracks making sure that we do the right thing in the algebrizer.