Assocations queryable via #where

Need to figure out how to test datastore optimisation vs iterating over rows