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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:30:13+00:00 2026-05-29T04:30:13+00:00

This may sound as a simple question for many, I am trying to understand

  • 0

This may sound as a simple question for many, I am trying to understand more about how CoreData manage objects, and I encountered this in the documentation:

The managed object context acts as a scratchpad. You can create and
register managed objects with it, make changes to the objects, and
undo and redo changes as you wish. If you make changes to managed
objects associated with a given context, those changes remain local to
that context until you commit the changes by sending the context a
save: message.

I was wondering what this scratchpad is. I have just run the CoreData profiler and saw that by creating the managed object and later updating its properties, no “Core Data Saves” call to the store is made. So I guess all is kept in memory, if you could just confirm that.
Then, second question, if this is confirmed, are there any best CoreData “memory” practices when dealing with creating and in particular updating of managed objects before saving ?

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-05-29T04:30:14+00:00Added an answer on May 29, 2026 at 4:30 am
    1. Confirmed.
    2. Yes, you should of course not have too many transactions in the context without saving. For example, if you are creating 10.000 entities in a loop, then depending on the size of these entities, it might be advisable to save once in a while. Please note that the opposite also applies: if you save too often (e.g. every time in a 10.000 loop) it is also very inefficient.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may sound like a stupid question, perhaps it is. But I'm only trying
This may sound like a simple question, but I just cannot seem to find
This may sound like a simple and trivial question, but I'm using the following
This may sound like a simple question but as am newbie in Webservies and
This may sound like a simple question which I'm sure has a simple solution,
This may sound like a bit of a rhetorical question, but I ask it
This may sound like an unusual question, but I am curious as to how
This may sound like a stupid question but I'm a beginner not just to
this may sound funny, but i spent hours trying to recreate a knob with
im really new to linq-to-SQL so this may sound like a really dumb question,

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.