What is more efficient?
- Using predicate with "IN" like [NSPredicate predicateWithFormat:@"myObjectId in %@", neededIds] ;
- Creating bunch of predicates for each id like ([NSPredicate predicateWithFormat:@"myObjectId == neededIds[i]"]) and then using this predicates to create compound predicate like [NSPredicate orPredicateWithSubpredicates:perIdPredicates]?
I'd prefer first case, because it seems much cleaner, less code, but my collegue insist that second case with compound predicate is more efficient (but I never heard about it in WWDCs).