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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:59:55+00:00 2026-06-15T07:59:55+00:00

My app has a 5 modules and each modules data was stored in 5

  • 0

My app has a 5 modules and each modules data was stored in 5 different managed object. I created a search page, where the user can type a keyword to find the keyword in all the 5 modules. For each text change in search bar, I refreshed the search result table to show the matching records count along with the module name.

So, for each press in search bar, I need to fetch the matching datas count from all 5 modules. This is simple if the app has minimal amount of records. But, in my case, the total record count was so heavy, so the time taken by fetching data from 5 modules by the typed search word was so huge and it makes the app freeze.

I have no idea about implementing thread concept in iOS, so I tried to learn by reading Apple’s threading programming guide and concurrency programming guide. I hope, I gained some knowledge about threads, but it’s somewhat complex when I try to implement those concepts by code.

My requirement is, I have some 5 functions which should be called using thread concept. Consider the functions are,

function1() {...}
function2() {...}
function3() {...}
function4() {...}
function5() {...}

I want to call these 5 functions in the same time so that no one can wait for others completion. One more point is, when the above functions fetching the records, if the user type/erase a text in searchbar, I want to cancel/stop all threads, and I need to perform another new 5 calls to these functions.

I’m looking for suggestions, any kind of working sample codes, examples. Any help would be greatly appreciated.

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-06-15T07:59:58+00:00Added an answer on June 15, 2026 at 7:59 am

    There’s a good post about Core Data and background threading here! With the whole GCD stuff this is not so hard to acomplish anymore, so this is maybe a good entry point for further research on this topic.

    And here is another post to this topic.

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

Sidebar

Related Questions

I have a desktop app that has 65 modules, about half of which read
My app has a simple signup where the user types in his/her email address
My app has a function where it takes user input and then calls HttpGet
I am developing an app where users can perform CRUD operations on multiple data
I am using spring & hibernate. my application has 3 modules. Each module has
My app has an options menu that is available in almost all Activities, which
My app has the ability to store passwords. But these are important passwords, so
My app has started throwing errors when I try to save a particular class
My app has an expensive service method, results of which must be 1) checked
My app has been under dev for a few months and am now being

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.