I want to leave the Core Data to use the FMDB, but i want know some information if possible, in core data to reload a table view there is the NSFetchedController
, that doesn't reload the data every time, but reload it when it necessary, so the reload of a UITableView
is very fast (or i think do this maybe i wrong) in my project i have a UITableView that load the row from a query in the DB, so in the ViewWillAppear every time i call the method that query the DB, insert the information in a Array and reload the table view, but when the row in table view increase, the view takes time to appear, instead in Core Data the view display faster, so my question is, there is a way to for example cache data? to check if something change and need to make the query again?
Another question, to make the query faster i have add some index, i have to create an index also for the primary key?
I would suggest you first get familiar with some elementary concepts:
Read all about it here.