-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query :limit #126
Labels
enhancement
New feature or request
Milestone
Comments
Putting |
Seems to be related to #117 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: