Say I have an Entity 'Employee' with a to-many relationship 'departments' to another entity 'Department'. If I have an instance of an Employee object and the departments collection is currently a fault, what is the most memory efficient way to get the count of departments?
Two obvious options are:
1) calling [myEmployee.departments count];
2) Constructing a fetchRequest to return only the Department objects whose matching 'employee' relationship points to my employee object and then calling countForFetchRequest:
Apart from the memory usage would either one of these methods be non-negligibly faster then the other?