You'll probably want to add indexes on the fields you're querying by.