Fetch chunk by batches. (#4177)

### What problem does this PR solve?

#4173

### Type of change

- [x] Performance Improvement
This commit is contained in:
Kevin Hu
2024-12-23 12:12:15 +08:00
committed by GitHub
parent 2cbe064080
commit 31d67c850e
2 changed files with 12 additions and 5 deletions

View File

@ -196,7 +196,7 @@ class ESConnection(DocStoreConnection):
s = s.sort(*orders)
if limit > 0:
s = s[offset:limit]
s = s[offset:offset+limit]
q = s.to_dict()
logger.debug(f"ESConnection.search {str(indexNames)} query: " + json.dumps(q))