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 1093139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:47:10+00:00 2026-05-16T23:47:10+00:00

Hello fellow stackoverflow family members? I know it is un-efficient to create one extra

  • 0

Hello fellow stackoverflow family members?

I know it is un-efficient to create one extra sqlite table in iPhone CoreData system. (X)

Currently, My app has one sqlite table but there are preset data to users to no need to waste parse time. But if I adding new entity in current structure of SQLite table, it wipes up the whole preset data. I haven’t tried to use immigrate method but I don’t think it wouldn’t be just adding a new entity on the table. I’m thinking it also wipes up previous preset data.

Current Architecture of SQLite file.

  • entity : A
  • attributes : contains data

I want to keep A with attributes still contain data but also add new entity : B.

entity : A

attributes : previous contained data

(PLUS+)

entity : B

attributes : new data

Do I need to create extra persistence set to separately store entity B (create another SQLite file and use as storage) or Is there possible way to add entity B in current SQLite with no changes in entity A?

Thank you.

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

    To directly answer your question: Yes, you can reference multiple SQLite files in Core Data. You’ll want to use a unique persistent store for each one.

    I don’t understand the rest of your question though, so it may be likely that creating multiple persistent stores is not what you want at all.

    I know it is in efficient to create one extra sqlite table in iPhone CoreData system.

    This is untrue. Creating multiple entities (aka, tables, but that is abstracted away) can lead to much more efficient queries.

    Currently, My app has one sqlite table but there is no need to change preset sqlite table but want to add some other attribute.

    Just add the attribute to your entity. If your app has already been released or you want to maintain existing data, you’ll have to set up a migration and/or turn on lightweight migration.

    So commit with new attribute and update coredata is not valid. Because it flash off current data set and need to spend another hours to type manually.

    This didn’t make any sense to me. Can you clarify?

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

Sidebar

Related Questions

No related questions found

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.