FROM : malcom
DATE : Wed Jan 30 23:25:47 2008
Hello guys. I'm working with core data and multithread. I need to save
a series of objects (each object can have parent and childs) inside a
store. I receive these object into a stream ordered (so I cannot
receive before child and then, one or more objects later childs)
I know if I try to insert object in a second thread I need to perform
a save in main thread in order to see these new objects. However this
operation can be expensive (because in order to link parent/childs I
need to perform a save for each new insertion). Is there a way to
avoid it and allows core data to see new insertion made in a second
thread?
TIA
malcom
DATE : Wed Jan 30 23:25:47 2008
Hello guys. I'm working with core data and multithread. I need to save
a series of objects (each object can have parent and childs) inside a
store. I receive these object into a stream ordered (so I cannot
receive before child and then, one or more objects later childs)
I know if I try to insert object in a second thread I need to perform
a save in main thread in order to see these new objects. However this
operation can be expensive (because in order to link parent/childs I
need to perform a save for each new insertion). Is there a way to
avoid it and allows core data to see new insertion made in a second
thread?
TIA
malcom
| Related mails | Author | Date |
|---|---|---|
| malcom | Jan 30, 23:25 | |
| malcom | Jan 30, 23:27 | |
| Ben Trumbull | Jan 31, 01:49 |






Cocoa mail archive

