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

  • Home
  • SEARCH
  • 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 5992913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:36:01+00:00 2026-05-22T23:36:01+00:00

I have set up and app which has pre-populated data that copies the database

  • 0

I have set up and app which has pre-populated data that copies the database to the project’s store. Using the ‘CoreDataBooks example’ method:
Any way to pre populate core data?

For application upgrades, I want to add more data to the database but I don’t want to change the existing database since new user data is stored there?

What’s the best way to do this?

I’m thinking I would create a new versioned managed object model (I’m not sure if you can add a new MOM version if nothing in the schema actually changes), for new versions, read the currently running MOM version, migrate the MOM to the latest version and manually add the new records in the code that have not been added since the currently running MOM version.

It seems a bit tedious to manually add new records in the code. Does that sound right or is there a more elegant way to add this new data?

Thanks!

  • 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-22T23:36:02+00:00Added an answer on May 22, 2026 at 11:36 pm

    If you change the managed object model itself e.g. add a new entity or change an existing attribute, then you need to use migration to update the existing persistent store. See the Core Data docs for details on migration.

    If you just want to add new data, then you don’t have any choice but to do so “manually.”

    Remember, Core Data is an object graph management system, not a database. An object “graph” is a “web” of interrelated objects so the only way to add data to the graph is to create new objects and set their relationships. It’s not inefficient, it just the way it works.

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

Sidebar

Related Questions

I have set up a UITableView-based app, which has a .plist for holding the
I have an application, which has a Spinner that I want populated with some
I have a pre-existing project to which I've added Core Data models. I added
I have an app which has to load some data at startup, so I
I have an app which has tasks that run on regular intervals. Instead of
I have an ASP.NET MVC app which has a bootstrapper class that configures log4net
I´m working with an iPhone app which has a SQLite database set up. I
I have a WPF app which snaps to screen edges (I just set the
I have a fairly large CRUD winform app that is set up to display
we have WinForms app which stores data in SQL Server (2000, we are working

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.