Daily iOS
Persistence

Core Data vs SQLite

A teammate says "Core Data is heavy and hard to understand, let's use SQLite directly (or GRDB)." What's the real difference between the two approaches?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Core Data gives you the object graph, change tracking, UI integration, and CloudKit, but the SQL and the performance are harder to control; raw SQLite or GRDB leaves the SQL and the query plan to you. Both sit on the same SQLite file.

Share a question