Updating default page size to 1000 from 10 (#282)
Fixed page size problem with `all()` The default page size for `all` is supposed to be 1000 not 10, for performance reasons. When I changed the constant `DEFAULT_PAGE_SIZE` a while back, I seem to have forgotten to have changed it here. This fixes that.
This commit is contained in:
parent
679a7aae03
commit
3f91f9e941
1 changed files with 1 additions and 1 deletions
|
@ -754,7 +754,7 @@ class FindQuery:
|
|||
raise NotFoundError()
|
||||
return results[0]
|
||||
|
||||
async def all(self, batch_size=10):
|
||||
async def all(self, batch_size=DEFAULT_PAGE_SIZE):
|
||||
if batch_size != self.page_size:
|
||||
query = self.copy(page_size=batch_size, limit=batch_size)
|
||||
return await query.execute()
|
||||
|
|
Loading…
Reference in a new issue