Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5980361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:47:23+00:00 2026-05-22T21:47:23+00:00

Is there a good rule of thumb for when you should switch from having

  • 0

Is there a good rule of thumb for when you should switch from having your objects in memory to store them in a database like Core Data/Sqlite on the iPhone/iPad?

I’ve heard (I think it was in Big Nerd Ranch, book) that 10.000 of simple objects is no problem at all to save and store from Document directory on iPhone 3GS. But I guess when you have more complex releationships between objects its easier to store them in Core Data for example.

Whats your experience, Database or not to Database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:47:23+00:00Added an answer on May 22, 2026 at 9:47 pm

    See this previous answer to a similar question.

    Short summary:

    1. When data set is relatively small and with low complexity, you can use collections (NSArray, NSDictionary, NSSet) written to disk as plist.
    2. When data sets are very large but with low complexity e.g. a library card file where all the cards are exactly the same and unrelated to one another, then raw SQL can be a good solution.
    3. When complexity is high i.e. many different kinds of objects all related to one another, use Core Data regardless of the data size.

    However, once you successfully climb Core Data’s learning curve, it becomes so easy to use that you default to it all the time. I now employ it automatically even for things I once used arrays for.

    If you intend to make a practice of writing Apple API apps, it would be a good use of your time to spend a week or two learning Core Data. It’s not just a persistence API, it is an API for creating and using the entire model layer of the Model-View-Controller design that the Apple API uses,

    (BTW, I’m pretty Big-Nerd Ranch’s advice about plist based persistence applied to MacOS. Your memory and cpu constraints are much tighter on iOS devices. Plus, iOS devices use flash drives so the penalty for disk operation is far, far lower than for devices like desktops that use mechanical hard drives.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a good rule of thumb as to when you should prefer varargs
Is there a good rule of thumb for when nonatomic properties should be used
Question Is it a good rule of thumb for database IDs to be meaningless?
Is there a good rule of thumb or test I can perform to determine
Is there a good resource which describes the why behind PMD rule sets? PMD's
Is there a good gem to track/log user activities on the site? Like when
Is there a good way to keep keys from conflicting when using the Microsoft
There's a rule that says Only mock objects that you own. I think I
When coding, what is a good rule of thumb to keep in mind with
Having friendly URLs is generally a good thing. However, there are sometimes when it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.