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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:59:29+00:00 2026-05-25T05:59:29+00:00

I am presenting an NSManagedObject hierarchy (basically three levels) with different view controllers on

  • 0

I am presenting an NSManagedObject hierarchy (basically three levels) with different view controllers on iOS. The issue I don’t completely understand is that if there is need for NSFetchedResultsController for each of the view controllers. For the root view controller it seems convenient but the views that are following this are based on the selection in the previous view. What about NSFetchRequest when compared to direct relationships? The data being displayed is static and it will not change ever, so there is no need to prepare for updates. It will be loaded from a core data sqlite file.

Here’s the simple graphic of what I have:

A (1) <---> (*) B (1) <---> (*) C

So both A–B and B–C relationships are one-to-many and in the root view I’m displaying a list of As. Selecting one A will display it’s Bs in the next view controller and so forth.

Is there any difference whether I’m fetching the instances of B with NSFetchRequest (or NSFetchedResultsController) or simply using the to-many relationship in A? Is there any difference in memory footprint or under situations when memory is running low? I understand that I can always give the fetch controller away when didReceiveMemoryWarning, but with managed objects I think it’s not that simple. Is this so? I’d love to use the direct relationships.

Thanks 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-25T05:59:29+00:00Added an answer on May 25, 2026 at 5:59 am

    There’s a difference but not one you should worry about unless you have thousands of Bs and Cs for each A.

    If you use the relationship then you get an NSSet back – this won’t use NSFetchedResultsController. However, the objects you get back won’t actually have any data in, they will all start out as faults so the memory footprint is pretty small. They only retrieve their data once you ask for it 🙂

    And if you get a low memory warning you can force managed objects to become faults again by reloading them from the context (see the docs here).

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

Sidebar

Related Questions

I'm basically presenting a series of documents (view controllers) in the root view controller.
I have a view that I am presenting modally. For some reason it animates
Has Presenting modal view controller in iOS 4.3 for iPad changed? I created a
I am just presenting modal view controllers one after the another and not dismissing
I recently faced a problem of presenting the output of simple genetic algorithm that
Got waist deep in a project that will involve presenting zoomable hi res catalog
I'm presenting a modalViewController. After I dismiss the modal view controller with: - (void)dismissModalViewControllerAnimated:(BOOL)animated
I don't mind presenting the user with permission dialogs... What's involved in opening a
I'm having an issue with correctly presenting items in an unordered list. The labels
I have an MPMoviePlayerController that I am presenting modally. The video loads fine, however

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.