I am trying to turn to Realm(https://realm.io/) and come across a problem. If we are handling a data base storing a large number of records, and we just want to fetching a certain number of records from some offset, how can we get it with realm. you know, it can be easily done by sql or core data. and we don't want to fetch it all from the data base and then caculate ourselves in the memory, as it needs much time
Fetching with a certain number and some offset with Realm(https://realm.io/)
1.5k views Asked by bimetoer At
1
Since Realm reads data from the disk upon access (even down to the property level), you don't have to worry about reading more from disk than is necessary. So if you want to only access the next 10 objects after the 100th, you just have to skip accessing the first 100.
For example:
I'm using Realm Swift in this example, but the same concepts apply to Realm Objective-C.