You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for query :limit (and related :offset)
Based on response on Slack and googled suggestions for Datomic, there seems to be at least two alternatives for implementation:
In the map form of q. Like {:query '[:find ... :where ...] ... :limit 20 offset: 40}
In the map form of the query itself like {:find ... :where ... :limit 20 offset: 40}.
Alternative 1 reflects the suggestion in this response in Datomic forum (documented here). One benefit I see for this approach is that it allows you to keep queries in vector form (possibly in a separate file) and only wrap them up in a map when limiting is needed.
If it fits and is not already implemented, support for :timeout could be added as well.
The text was updated successfully, but these errors were encountered:
Add support for query
:limit
(and related:offset
)Based on response on Slack and googled suggestions for Datomic, there seems to be at least two alternatives for implementation:
q
. Like{:query '[:find ... :where ...] ... :limit 20 offset: 40}
{:find ... :where ... :limit 20 offset: 40}
.Alternative 1 reflects the suggestion in this response in Datomic forum (documented here). One benefit I see for this approach is that it allows you to keep queries in vector form (possibly in a separate file) and only wrap them up in a map when limiting is needed.
If it fits and is not already implemented, support for
:timeout
could be added as well.The text was updated successfully, but these errors were encountered: