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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:13:03+00:00 2026-05-27T08:13:03+00:00

In our app, we download about 48 sqlite files each around 300kb in size

  • 0

In our app, we download about 48 sqlite files each around 300kb in size and save it to the disk. When user goes into a module, a subset of the data from the any of the file is read and displayed based on some conditions. As the user scrolls around in the module, when the scrollview stops scrolling, we determine the position where it stopped and accordingly query the appropriate sqlite file to get the data and display on screen. This takes about 2 sec to show the data to the user.
We want to optimize this and I have read that querying CoreData instead of sqlite files can make this faster.

So, the question is, should we try to put data from each sqlite file into CoreData and then always query CoreData. My concern is that it would be too much data that would need to be inserted this way since we have 48 files. The other approach is only the subset of data that is fetched should be loaded to CoreData and not all the files. But this would mean that before displaying the data we determine whether it was already fetched and available in CoreData, else we query sqlite.
Any suggestions as to what would be a better way to go?

  • 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-27T08:13:03+00:00Added an answer on May 27, 2026 at 8:13 am

    With the amount of info you’ve provided, it’s not possible to really see whether Core Data would make sense for your application. You would have to provide a good amount of info for anyone else to have really well-informed opionion on the matter — and a decision such as this is important.

    Btw, you seem to be under the impression that all the data would have to go in gigantic database file in Core Data – this isn’t the case. You can have many managed object model files (these are end-product persisted database files for Core Data, named .xcdatamodeld) and open them selectively.

    Your best bet is to do some research, try and find the crucial differences between Core Data and use of SQLite directly. They both have their place. Core Data is great in the right circumstance — it’s not a relational database, it’s an object graph and persistence manager, and that has important implications. Core Data has been optimised to the moon and back, so if you use it in the correct circumstances, it’s great — good performance and does some heavy lifting to stop you having to. But in other circumstances, direct use of SQLite would be a better option. See, for example, this blog post about someone who switched away from Core Data to SQLite.

    Also check out this nice article on the differences. And of course read Apple’s own guides, and the wikipedia page.

    It’s hard for us to answer the question you’ve asked, but if you have queries about certain more specific aspects of Core Data, post some new questions — that sort of question is easier to answer.

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

Sidebar

Related Questions

We have a WPF app that allows our users to download encrypted content and
Our app allows multiple files to be selected in a file selection dialog which
We're building an internal web app used by about 50 users. Our users will
I'm using MBProgressHUD in our teaching App, which is tab bar navigated. The user
In our iOS app we have close to a hundred image files in resources
Our app (already deployed) is using an Access/Jet database. The upcoming version of our
Our app uses a component that requires a license file in the directory with
Our app runs in jvm 32 bit, even when in windows x64. Now, at
Our app servers (weblogic) all use log4j to log to the same file on
Our app uses a string to house character-values used to indicate enum values. for

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.