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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:25:03+00:00 2026-06-02T01:25:03+00:00

Im designing a dictionary App, which is having a database of minimum 220,000 entries.

  • 0

Im designing a dictionary App, which is having a database of minimum 220,000 entries.
First I used a single Entity to store my data then after a weak performance for searching database, I changed my database design to have an Entity based on each Alphabet.

Then again since the method I was using, was to fetch all data matching the search object into an NSArray, my performance was not acceptable (each key stroke made my UIView to freeze for approx 3 sec), So I changed to NSFetchResultController. FRC made my app much more responsive (1-1.5 sec per key stroke) but still this is not acceptable result.

I would really appreciate if you can guide me further so I can increase the performance.

  • 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-02T01:25:05+00:00Added an answer on June 2, 2026 at 1:25 am

    Since CoreData is an object graph, you can implement any sort/search algorithm you want. A trie would certainly be good here… and tries are easy to implement.

    However, before I did that, I would use the new(er) features of CoreData, and add an index on the attribute you are using for your search.

    Using Xcode, bring up your model, and select the your entity. then, on the far right side, in the attributes inspector, right under where you give your entity a name, there is a place to set search indexes. It is called, surprisingly enough, “Indexes.”

    Add the attribute on which you do all your searching to that. The database will then maintain an index on that field, and when you search it, you will not have to linearly search the entire database.

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

Sidebar

Related Questions

When designing a stock management database system for sales and purchases what would be
Is TRIE the most recommended data structure while designing something like a dictionary for
I am designing a web service which will call different external web services according
I am designing a web API which requires fast read only access to a
I am currently designing a website in C#, which uses some very complex code
I have people and places data as: Person entity has IList<DateRangePlaces> each having IList<Place>
Designing AIR application which has to have server side push or notification, don't know
Designing forms has always been fun, but getting them to send email on the
When designing a C API for configuring a library/utility, I have a co-worker who
Im designing a website, and often I need to present information in a nice

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.