Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable threading for dispatching non-DB jobs #9

Open
jwp opened this issue Jan 28, 2010 · 0 comments
Open

Enable threading for dispatching non-DB jobs #9

jwp opened this issue Jan 28, 2010 · 0 comments
Labels

Comments

@jwp
Copy link
Contributor

jwp commented Jan 28, 2010

In some more curious situations, it may be desirable to run some threads in the backend for managing multiple I/O jobs.

Current gating aspects:

  • Threads cannot have access to the database (should be easy with existing protections)
  • Parts of pg-python rely on global state, Py_ALLOCATE_OWNER()
  • Thread finalization on_proc_exit?
  • Other lower level problems/threads in the backend are frickin' scary?

Another option is to just use event driven async systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant