diff options
| author | Simon Charette <charette.s@gmail.com> | 2022-05-04 01:31:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-04 08:31:59 +0200 |
| commit | 1109e669905d2011561e843f0ab7c2c02fb63c4d (patch) | |
| tree | 094ff240e42156ff8f4658e1cde24b0e73aabb16 /tests/postgres_tests/array_default_migrations | |
| parent | 37470bbd9089b1c64a5783438b42b31336937845 (diff) | |
Refs #33646 -- Reduced sync_to_async hops on async QuerySet iteration.
Until we add support for truly asynchronous database backends it's
actually detrimental to have complete set retrieval require multiple
hops between sync and async emulated contexts via asgiref.
By defaulting to sending the whole sync _fetch_all() to the current
context thread pool we reduce unncessary work when dealing with large
result sets since the queryset cannot be iterated anyway before all
results are retrieved and cached.
Diffstat (limited to 'tests/postgres_tests/array_default_migrations')
0 files changed, 0 insertions, 0 deletions
