Exceeding query limit when filtering

No, the query is performed on the entire collection. The .limit(1000) only limits the number of items returned by the query.