Django persistent database connection

后端 未结 6 520
太阳男子
太阳男子 2020-11-28 18:22

I\'m using django with apache and mod_wsgi and PostgreSQL (all on same host), and I need to handle a lot of simple dynamic page requests (hundreds per second). I faced with

6条回答
  •  一向
    一向 (楼主)
    2020-11-28 18:33

    Try PgBouncer - a lightweight connection pooler for PostgreSQL. Features:

    • Several levels of brutality when rotating connections:
      • Session pooling
      • Transaction pooling
      • Statement pooling
    • Low memory requirements (2k per connection by default).

提交回复
热议问题