Joo Park
Joo Park

Reputation: 3145

core data and paging

I have a database of 50,000 records. I'm using core data to fetch records from a search. A search could return 1000 records easily. What is needed to page through these records using core data and uitableview? I would like to show 100 records at a time and have 'load more' button after viewing 100 records.

Upvotes: 4

Views: 1958

Answers (1)

Marcus S. Zarra
Marcus S. Zarra

Reputation: 46718

Take a look at the NSFetchRequest and its controls over batches. You can set the batch size and the offset which will allow you to "page" through the data.

Upvotes: 7

Related Questions