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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:08:58+00:00 2026-05-27T07:08:58+00:00

I am building an application, that will need to gather data from many http

  • 0

I am building an application, that will need to gather data from many http sources. Some times, the count of these sources may end up being 700, resulting in a total of 35 MBytes.

To avoid downloading data each time I need it and to avoid charging the user an enormous amount of money, I thought that it would be best to store the results into an SQLite Core Data database, after the first pass, and then perform the requests locally as needed.

I am not searching the best way to avoid crashes while storing the downloaded data. I download data using an operation queue with up to 7 http simultaneous requests, and I fear that I may experience crashes while accessing the same managed object context from 2 threads simultaneously, and since we are talking about physical disk access to store in the database, things may get complicated.

I would just like to know about a good practice to store these kinds of data and then perform fast searches within it, without having your application crashing all the time due to multithreading issues.

Thank you in advance.

  • 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-27T07:08:59+00:00Added an answer on May 27, 2026 at 7:08 am

    You should not have 2 threads accessing the same NSManagedObjectContext. Each thread should have its own NSManagedObjectContext and you should be merging context when necessary using mergeChangesFromContextDidSaveNotification:. Multithreading and Core Data can be tricky so you will need to cross all your T’s and dot all your I’s on this, but it should be possible. iOS5 brought some better multi-threading support for NSManagedObjectContext with locking and such but I am not familiar with it yet to elaborate, but take a look into the Managing Concurrency section of the class reference if you are targeting iOS5, anything prior to iOS5 you will need to have multiple MOCs.

    Also, I believe that when on cellular network iOS limits the device to having a maximum of 2 concurrent HTTP requests at the same time.

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

Sidebar

Related Questions

Background: I'm building a small application that will be run daily, pulling data from
I am building an application that will need to know these answers: Does the
I'm building an iphone application that will need to communicate and exchange data with
I am building an application that will do some object tracking from a video
I am building a web application that will need to allow users to save
I am building an application that will need to send emails on numerous occasions
I'm building a Web application that will eventually contain a lot of images. These
I'm building a Flex application that will need run under two different deployment scenarios:
I'm building a desktop application that will run on multiple laptops. It will need
We are building an application that may need to be replicated to many servers

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.