Core Data: Mass updates possible?

Posted by wgpubs on Stack Overflow See other posts from Stack Overflow or by wgpubs
Published on 2010-03-16T18:34:51Z Indexed on 2010/03/16 19:01 UTC
Read the original article Hit count: 176

Filed under:
|
|
|

Is it possible to do mass updates on a given entity in Core Data?

Given an Person entity for example, can I do something like this:

Person.update(@"set displayOrder = displayOrder + 1 where displayOrder > 5")

Or is my only option to fetch all the entities needed and then loop through and update them individually???

Thanks

© Stack Overflow or respective owner

Related posts about core

Related posts about data