[query] Ensure optimal planning of unique-identity (and unique-value) attributes #144
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#144
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?
Unique attributes, perhaps obviously, can produce no more than a single result each time they're evaluated, if their value place is bound.
As such, if the value place is bound — or we expect it to be, given hints from the input bindings — then we should consider handling that tuple first. If it yields no results, the query immediately short-circuits. If it yields a result, the rest of the query can proceed, probably with one less unbound place.
Note that we might need extra work to make sure that the
vaet
/avet
index is used: #332.