mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Idea: Asynchronous fetching #73
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JohnEstropia on GitHub (Aug 26, 2016).
Objective: allow a way to fetch objects in a way that can wait for completion of
Into<Entity>("...")clause)@flyingcane commented on GitHub (Dec 27, 2017):
@JohnEstropia Hi JohnEstropia, it's a great open source for core data. Does CoreStore only support fetch records on the main thread? If a large number of records, does it block the main thread?
@JohnEstropia commented on GitHub (Dec 27, 2017):
@evanxie-cn If you have very large fetches (e.g. image binary data, few thousand objects) you can always fetch from a background transaction and pass the info you need to the main thread. Here's an example:
Depending on your confidence on your app architecture, you can also use unsafe transactions (
dataStack.beginUnsafe()) in conjunction with your ownDispatchQueues.@flyingcane commented on GitHub (Dec 28, 2017):
@JohnEstropia Thank you very much. I got it.