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
As far as I know, Realm lacks of an option for limit / paging.
Most ORMs as well as various databases support the option.
This feature will be needed in case that I want to get only 5 newest feeds.
realm.between(String fieldName, ..., ... ) does not guarantee querying exact amount of objects.
Although Realm uses lazy loading, I think this feature enhances readability and productivity for programming.
Expected Results
> // TODO : Get only 10 event objects.
> Realmrealm = Realm.getDefaultInstance();
> List<Event> query = realm.where(Event.class).greaterThan(Event.FIELD_CREATED_AT, oldest).limit(10);
The text was updated successfully, but these errors were encountered:
XDXO
changed the title
Is there any plans for querying exact amount of objects ?
Is there any plans for querying exact amount of objects ? T:Feature
Oct 18, 2016
XDXO
changed the title
Is there any plans for querying exact amount of objects ? T:Feature
Is there any plans for querying exact amount of objects ?
Oct 18, 2016
Hi @XDXO
This is already being tracked here #544. Note that since Realm lazy load all data you don't have the same memory concerns as seen in normal ORM's.
I'll close this as an duplicate and let discussion continue in #544
Goal
Expected Results
The text was updated successfully, but these errors were encountered: