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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:07:03+00:00 2026-05-16T14:07:03+00:00

I am building an iPhone application that will be using a weighted graph (probably

  • 0

I am building an iPhone application that will be using a weighted graph (probably around 1000 nodes and 500-700 relationships, ball park estimate, could be quite wrong).

Core data would be wonderful since it’s easy to work with and is optimized for the iPhone. At the same time, the graph nodes need to be weighted. I could add a level of indirection (edit/clarification: I would represent the weighted edges as relationships.) in core data but feel that might defeat the point of the increase in performance.

SQLite would enable me to do it without any extra indirection the problem becomes performance.

Another consideration is that I use core data to store the stuff and then store only the weights in sqlite in tables and build custom core data objects that when I fetch or create creates the necessary links in sqlite and then just use the sqlite for calculation (since the calculation would only be traversing and looking at weights, so I don’t need anything but the final result/id of the object). I then would look up the actually object in core data.

Also, there will be a server that is taking in consideration all of the users graphs into a much larger graph. So it might be easier to use sqlite straight up since replicating the information on the beastly server would be easier 🙂

Thanks for the help.

  • 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-16T14:07:04+00:00Added an answer on May 16, 2026 at 2:07 pm

    At first glance, Core Data is wonderful for your use case because its an object graph management framework (with persistence). It’s lazy loading and caching features allow you to load a partial graph in memory, which is usually desired if you have a large graph.

    Core Data doesn’t seem to support weighted relationship out of box (I’m not an Core Data expert at all). If “a level of indirection” means Core Data objects representing relationships, I agree it will be a performance hit.

    For performance and portability considerations, straight SQLite may be a better choice because you have complete control over the schemas and indices.

    I vote for your idea of “store only the weights in sqlite”. In my understanding, this allows you to take advantage of Core Data features while keeping performance critical tasks efficient.

    The author of NetNewsWire has written a blog article explaining why he has switched away from Core Data (mostly because performance and flexibility reasons) which may be helpful for you. http://inessential.com/2010/02/26/on_switching_away_from_core_data

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

Sidebar

Related Questions

Building an iPhone OS application that will allow users to anonymously post information to
I'm building an iphone application that will need to communicate and exchange data with
I am building an application that will have web, windows and mobile (iPhone) client,
I'm building an iPhone application and trying to create a savePDFFile method by using
I'm building an application for iPhone(iOS 5) using Phonegap(Html + Javascript + Css), and
I'm building this iPhone application to connect to a secured TFS server (one that
I'm building a recording iPad application that will take some moderately large recordings on
I'm building an iPhone app that is essentially a book, it will be bundled
I need to create an application for the iPhone that will connect to a
I am building an IPhone application (first one) that needs to send data to

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.