Vikings
Vikings

Reputation: 2527

iOS and dealing with large database

I have a very large database, and I am trying to populate a table view in the most efficient/logical way possible.

I'm leaning toward using an object to store the information in. Any ideas of an more efficient way of doing this? Would core data be better?

Upvotes: 1

Views: 385

Answers (2)

LJ Wilson
LJ Wilson

Reputation: 14427

Core Data with NSFetchedResultsController will be an efficient way to get that data out of the CD entity and into a UITableView. I have dealt with record sets up to 4500 rows, but never something that large.

One suggestion is to set the fetchLimit down low on any filtering methods

Upvotes: 1

David Dunham
David Dunham

Reputation: 8339

Yeah, for 100K rows, that sounds like Core Data to me. (If necessary, you could write a little app to run on the Simulator that reads in the data and saves it to a Core Data database you'd then include in the app bundle.)

Upvotes: 1

Related Questions