Django persistent database connection

后端 未结 6 533
太阳男子
太阳男子 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:50

    I created a small Django patch that implements connection pooling of MySQL and PostgreSQL via sqlalchemy pooling.

    This works perfectly on production of http://grandcapital.net/ for a long period of time.

    The patch was written after googling the topic a bit.

提交回复
热议问题