July 2011
1 post
1 tag
Dumbfounded
I was just shown an NSPredicate that dumbfounded me for several reasons:
It’s using five nested SUBQUERY expressions. In other words, a SUBQUERY within a SUBQUERY within a SUBQUERY within a SUBQUERY within a SUBQUERY.
It works
It’s reasonably fast
Core Data correctly handles it on a SQLite store
It’s the only way the author could accomplish what he needed in a...