#20562: Docs: How to use django ORM with multiprocessing
--------------------------------------+------------------------------------
Reporter: guettli | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.5
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by MoritzS):
Replying to [comment:8 aaugustin]:
> This question isn't specific to Django. The general problem that you
can't carry sockets across fork.
fork() copies the whole file descriptor table to the child process, so
sockets are definitely carried across to the child process.
It's just that you have to explicitly and carefully handle the sockets to
open and close them in the correct processes.
And that's where Django and probably most of the db driver libraries fall
short.
--
Ticket URL: <https://code.djangoproject.com/ticket/20562#comment:9>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.c417e6afaac9467ba397a82d235e72ae%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.