Most performant way to check how many objects are referenced by an to-many relationship in Core Data
Posted
by dontWatchMyProfile
on Stack Overflow
See other posts from Stack Overflow
or by dontWatchMyProfile
Published on 2010-06-13T10:04:14Z
Indexed on
2010/06/13
10:12 UTC
Read the original article
Hit count: 168
Lets say I have an employees relationship in an Company entity, and it's to-many. And they're really many. Apple in 100 years, with 1.258.500.073 employees.
Could I simply do something like
NSInteger numEmployees = [apple.employees count];
without firing 1.258.500.073 faults? (Well, in 100 years, the iPhone will easily handle so many objects, for sure...but anyways)
© Stack Overflow or respective owner