Giter Club home page Giter Club logo

Comments (7)

alexchan1680 avatar alexchan1680 commented on July 24, 2024

In a word, I want to be sure what is the correct usage of Batch Request Operations using BigNerdRanch CoreDataStack.
Anyone can help me really appreciated.

from coredatastack.

rcedwards avatar rcedwards commented on July 24, 2024

Hi @alexiosdev last time I attempted to use the NSBatchUpdateRequest it would only be performed on an NSManagedObjectContext that had a persistent store connected directly to it. i.e. You could not perform batch updates on a child context.

I would guess this is still the case, however this is not documented by Apple.

I'll try to give it a look again in a few days and confirm for sure thats the case.

from coredatastack.

jeremy-w avatar jeremy-w commented on July 24, 2024

If that bug is still there, we should definitely document it as a warning note on the related methods in CoreDataStack.

from coredatastack.

rcedwards avatar rcedwards commented on July 24, 2024

@jeremy-w This doesn't really pertain to any methods in CoreDataStack. This is simply using an NSBatchUpdateRequest on a NSManagedObjectContext.

from coredatastack.

alexchan1680 avatar alexchan1680 commented on July 24, 2024

@rcedwards , Thank you for your time!

from coredatastack.

jeremy-w avatar jeremy-w commented on July 24, 2024

Maybe a note on newChildContext()? It's not our code that's broken, but it's a gotcha we can't fix.

from coredatastack.

alexchan1680 avatar alexchan1680 commented on July 24, 2024

Well, I think that's what Apple's Core Data does.
I only had to call reset() on stack.privateQueueContext and stack.mainQueueContext to get changed data.
If you have better idea, I wish you please share with me.
Thanks.

from coredatastack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.