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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:59:54+00:00 2026-05-19T09:59:54+00:00

I’m very new to Core Data and I’m still learning how it all works

  • 0

I’m very new to Core Data and I’m still learning how it all works under the hood. My Core Data model hierarchy contains a user profile, which contains a set of ten different levels using a one-to-many relationship, with each level containing 30 different puzzles also using a one-to-many relationship.

UserProfile (x1) -> Level (x10) -> Puzzle (x30), for a grand total of 311 objects per user profile

The levels and puzzles models are used to store the user’s progress as the user sequentially solves the puzzles. When the game runs for the first time, the game reads all the levels and puzzles data from a plist and generates Core Data objects (table rows) that will be used store the users progress as they play the game. In other words, the list of Core Data objects doesn’t grow as the user plays the game, instead it’s all created at the start and the properties of the objects change as the user plays the game. I suspect this is inefficient, tho my questions remain the same…

  1. When I load a user profile from Core Data, will is also load all ten levels, as well as the 30 puzzles for each level into memory? I ask because I obviously don’t need all that data if the player is only playing one level at a time.
  2. If all the level and puzzle data is loaded into memory when the user profile is loaded, how can I “lazy load” the level and puzzle data as it’s needed?
  3. When I run my game using the Allocations instrument, it shows it’s using 6MB of “Overall” memory when the app is fully loaded and sitting in the main menu. Obviously, the memory usage increases as the user dives deeper into the navigation stack. Is 6MB considered “a lot” of memory for an app that just started?
  4. I’ve noticed that when I comment out the line of code that loads the User’s profile from Core Data, 6MB is still used. Does this mean the impact that my Core Data objects have on memory are negligible?

I apologize if these are outrageous questions and I apologize for their length, and thanks so much for your wisdom! I’m heading back to the Core Data docs right now, I just thought I’d post these questions while I continue the self-teaching.

  • 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-19T09:59:55+00:00Added an answer on May 19, 2026 at 9:59 am

    This answers your ‘lazy load’ question. Core Data to-many relationships. Are they Lazy Load?

    I wouldn’t worry about 6MB of memory unless you see a performance issue. You can always check it with the included utilities.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have a text area in my form which accepts all possible characters from
I want to construct a data frame in an Rcpp function, but when I
I have some data like this: 1 2 3 4 5 9 2 6
I have a jquery bug and I've been looking for hours now, I can't

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.