See [https://github.com/django/deps/blob/main/accepted/0009-async.rst#the-
orm DEP-9].
--
Ticket URL: <https://code.djangoproject.com/ticket/33646>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Mariusz Felisiak):
[https://github.com/django/django/pull/14843 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:1>
Comment (by Carlton Gibson <carlton.gibson@…>):
In [changeset:"6b53114dd862ec97c282fdfdc83579cbd6d1560d" 6b53114]:
{{{
#!CommitTicketReference repository=""
revision="6b53114dd862ec97c282fdfdc83579cbd6d1560d"
Refs #33646 -- Added example for async cross-thread connection access.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:2>
Comment (by Carlton Gibson <carlton.gibson@…>):
In [changeset:"86324f37b3ce0b1fb3973c10f2e1e4655b5680cd" 86324f37]:
{{{
#!CommitTicketReference repository=""
revision="86324f37b3ce0b1fb3973c10f2e1e4655b5680cd"
[4.0.x] Refs #33646 -- Added example for async cross-thread connection
access.
Backport of 6b53114dd862ec97c282fdfdc83579cbd6d1560d from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:3>
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:4>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"58b27e0dbb3d31ca1438790870b2b51ecdb10500" 58b27e0d]:
{{{
#!CommitTicketReference repository=""
revision="58b27e0dbb3d31ca1438790870b2b51ecdb10500"
Fixed #33646 -- Added async-compatible interface to QuerySet.
Thanks Simon Charette for reviews.
Co-authored-by: Carlton Gibson <carlton...@noumenal.es>
Co-authored-by: Mariusz Felisiak <felisiak...@gmail.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"271a8e73ee382bb487d15e97ffaa675d78869413" 271a8e7]:
{{{
#!CommitTicketReference repository=""
revision="271a8e73ee382bb487d15e97ffaa675d78869413"
Refs #33646 -- Made QuerySet.raw() async-compatible.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:8>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"77926176b281b9c553c934e52acdd1c0377ea601" 77926176]:
{{{
#!CommitTicketReference repository=""
revision="77926176b281b9c553c934e52acdd1c0377ea601"
Refs #33646 -- Added RawModelIterable.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:7>
Comment (by GitHub <noreply@…>):
In [changeset:"1109e669905d2011561e843f0ab7c2c02fb63c4d" 1109e669]:
{{{
#!CommitTicketReference repository=""
revision="1109e669905d2011561e843f0ab7c2c02fb63c4d"
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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:9>
Comment (by Carlton Gibson <carlton@…>):
In [changeset:"4525d689e9ad4667e1798004c25053966c73c2d2" 4525d689]:
{{{
#!CommitTicketReference repository=""
revision="4525d689e9ad4667e1798004c25053966c73c2d2"
Refs #33646 -- Fixed link markup in queries topic doc.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:10>
Comment (by Carlton Gibson <carlton.gibson@…>):
In [changeset:"aa3197e5f11f33aef22f4d5a1fe711501bfbc49c" aa3197e5]:
{{{
#!CommitTicketReference repository=""
revision="aa3197e5f11f33aef22f4d5a1fe711501bfbc49c"
[4.1.x] Refs #33646 -- Fixed link markup in queries topic doc.
Backport of 4525d689e9ad4667e1798004c25053966c73c2d2 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:11>
Comment (by GitHub <noreply@…>):
In [changeset:"e580b891cb5ae31eb0571c88428afb9bf69e47f2" e580b89]:
{{{
#!CommitTicketReference repository=""
revision="e580b891cb5ae31eb0571c88428afb9bf69e47f2"
Refs #33646 -- Moved tests of QuerySet async interface into async tests.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:12>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"8740d2f452186b30374bf29240144a5048ae0eb4" 8740d2f4]:
{{{
#!CommitTicketReference repository=""
revision="8740d2f452186b30374bf29240144a5048ae0eb4"
[4.1.x] Refs #33646 -- Moved tests of QuerySet async interface into async
tests.
Backport of e580b891cb5ae31eb0571c88428afb9bf69e47f2 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33646#comment:13>