#31958: Django ORM sync_to_async error FATAL: remaining connection slots are
reserved for non-replication superuser connections
-------------------------------------+-------------------------------------
Reporter: Supratim Samantray | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: ORM Async | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):
Just a follow-up: ORM calls should use the `thread_sensitive` parameter to
`sync_to_async()` this would likely make your example run, but it would do
so serially, rather than concurrently, since all the operations would be
run in a single thread executor. (Maybe that helps anyway.)
--
Ticket URL: <https://code.djangoproject.com/ticket/31958#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.f8eb591ed68e61107ce4eb8a46337b7f%40djangoproject.com.