Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

Can't use find on a query #3

Closed as duplicate
Closed as duplicate

Description

@kakai248

With the current Rx implementation, it's not possible to use find for pagination.

Take RxQuery.single for example. Since we pass Query<T> and receive a Single<List<T>>, we can't apply that operator.

I really don't have a suggestion on how to fix this decently. Right now, I'm doing:

Single.just(box.query()
                .build()
                .find(from, to)
)

Truth is that I would prefer a somewhat different Rx implementation. Something along the ways of requery (https://github.com/requery/requery).

Thank you.

Activity

  1. greenrobot-team commented on Jul 2, 2018

    @greenrobot-team
    Collaborator

    We are currently tracking a change to set offset and limit while building the query, instead of when calling find. See objectbox/objectbox-java#303 -ut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions