How does pgBouncer help to speed up Django

前端 未结 2 530
面向向阳花
面向向阳花 2020-12-23 02:08

I have some management commands that are based on gevent. Since my management command makes thousands to requests, I can turn all socket calls into non-blocking calls using

2条回答
  •  攒了一身酷
    2020-12-23 02:24

    PgBouncer reduces the latency in establishing connections by serving as a proxy which maintains a connection pool. This may help speed up your application if you're opening many short-lived connections to Postgres. If you only have a small number of connections, you won't see much of a win.

提交回复
热议问题