Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Concurrency with Core Data #2

Copy link
Copy link
@langyufei

Description

@langyufei
Issue body actions

I am not sure when but it seems Apple supports concurrency programming with Core Data in two ways:
"There are two possible ways to adopt the pattern:

Create a separate managed object context for each thread and share a single persistent store coordinator.
This is the typically-recommended approach.

Create a separate managed object context and persistent store coordinator for each thread.
This approach provides for greater concurrency at the expense of greater complexity (particularly if you need to communicate changes between different contexts) and increased memory usage."

I know, it still requires us to carefully manage things.
Do you available for updating the "CoreDataStack" in stead of an assertion in code?

reference: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/coredata/Articles/cdConcurrency.html#//apple_ref/doc/uid/TP40003385-SW1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.