allowLargeResults is needed for large query results