Comment on Does anyone run Postgres without PgBouncer?parentComments−ketozhang28dYou've misunderstood the GIL and Python threads.For I/O, you can add threads and share the same connection object. Like any other languages, you are responsible for making it thread-safe.There's also async. Many Python web apps spawn a thread per worker in your web server, not processes. Look into ASGI vs WSGI.
Comments
You've misunderstood the GIL and Python threads.
For I/O, you can add threads and share the same connection object. Like any other languages, you are responsible for making it thread-safe.
There's also async. Many Python web apps spawn a thread per worker in your web server, not processes. Look into ASGI vs WSGI.