I have a very basic question for iPhone dev. Why is Core Data faster than SQLite even though CoreData uses SQLite under the hood?
-
3What makes you think Core Data is faster than SQLite?Noah Witherspoon– Noah Witherspoon2010年12月16日 08:17:28 +00:00Commented Dec 16, 2010 at 8:17
-
2The selected answer might help you understand why.. stackoverflow.com/questions/1045238/…Kolin Krewinkel– Kolin Krewinkel2010年12月16日 08:18:48 +00:00Commented Dec 16, 2010 at 8:18
1 Answer 1
The key is in the optimisations that Apple has put in place in Core Data. It makes very intelligent decisions about items that should be cached for example.
Theoretically you could probably achieve the same performance without using Core Data, but it would take a very long time to re-build all of the optimisations that Apple engineers, who are very familiar was the platform, have put in place.
Comments
Explore related questions
See similar questions with these tags.