Add async iterator support to payload.find #12169
rktyt
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Mongoose supports async iterators.
Drizzle currently supports them only for MySQL, but support for PostgreSQL and SQLite is in progress.
When working with a large number of records, using
for await
withpagination: false
can simplify your code compared to traditional pagination.It not only makes the logic cleaner, but also helps focus on the core processing rather than pagination mechanics.
Beta Was this translation helpful? Give feedback.
All reactions