[query] Attribute derivation #124
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#124
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?
Consider a query like
What this query means, and the results it can produce, depend very much on the schema.
If the schema contains no attributes with
:db/valueType :db.type/double
(we don't supportfloat
), then we know at algebrizing time that this query can return no results.If the schema contains only one
double
attribute, then we know that?a
must be bound to that attribute if the query is to return results, and we can act as if?a
is a constant. This can allow us to generate a more efficient query plan.If the schema contains several attributes that could match, then we can at least constrain the solution space.
This ticket tracks doing that when the algebrizer is a little more complete (after #243).