简体   繁体   中英

is it possible to interact with two different entities in CoreData at the same time?

I have to Entities in my CoreData, object one is a "temp" entity to download updates, Entity two is my main active entity.

When I am downloading data to entity 1 off the main thread, I seem to "hang" when I try and access entity 2.

Is this an expected interaction?

Thanks for the help (Sorry if I asked this in a confusing way)

如果要在多个线程上使用Core Data,则标准做法是使用相同的持久性存储协调器为每个线程创建一个单独的NSManagedObjectContext

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM