Get Updates By E-mail 

coredata

Using iPhone Core Data vs. A Database

  •  
  •  
  •  
  •  
  •  

Awhile I wrote an article about using Core Data vs. SQLite.  In that article I didn’t delve into any of the technical differences about the two technologies, but just went into some of the reasons why you might want to implement one vs. the other.  I found an excellent article that covers the more technical details of Core Data vs. a conventional database.

The article is: The Differences Between Core Data And A Database.  Some of the key differences of note being:

  • Core Data operates in memory, while a database can edit or drop tables without loading into memory
  • A database is perpetually saved providing crash resistance, Core Data requires a save process
  • A database can be slow to create millions of rows while Core Data can do this very quickly as it operates in memory – although the save process being at the end

Hopefully this article will be helpful to those trying to decide between SQLite and Core Data.

Please post any comments below, thanks.

Source: Cocoa With Love


  •  
  •  
  •  
  •  
  •