objectbox / objectbox/objectbox-java

Set offset and limit before query build

Open
#303 9 comments 8 reactions 1 assignee View on GitHub

@greenrobot-team is already working on this.

Since Sep 18, 2018.

enhancement
Dominant language
Java
Stars
4.6k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

Currently, we can only use limit and offset as .find(long offset, long limit)

But, what If I want to listen to query changes but with limit and offset as results? Is that possible?
Example, I have 1000 messages, but I do show for a user only 100, if a user will scroll, then new messages will be loaded. Also, query automatically updates list if, a new message will be inserted into DB, but with same offset and limit.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.