Take the 2-minute tour ×  Data Model  I'm building an interface
to allow users to filter a set of Photos. The data model is
above. I'd like the disable any controls that would result in 0
results.  To accomplish this, I'm running new fetch requests for
every control that is off/not selected each time the user makes
their own change. I add the data that the control represents to
my NSCompoungPredicate, then remove it after I get the result.
If the count of the result is 0, I disable that control.  I'm
doing this all on the main thread so in some cases there is a
bit of a lag in the app. Is there a better way to do this type
of filtering with less overhead? Should I run these filter
fetches on their own thread? I've never done that with CoreData
and worm what I've read I need a separate context for that and
I'm not sure how to go about setting up code for that.
share|improve this question add comment  1 Answer  up vote 1
down vote accepted  A bit of code would help. Aside from that,
here are a few suggestions.