Skip to main content

DB-API2 connection pool for Django (for postgresql, mysql and sqlite)

Project description

DB-API2 connection poolling for Django.


Is a simple application that uses the excellent SQLAlchemy connection pool to incorporate a it to django. All work is based on

Note: currently only been tested with postgresql, but in theory it should work perfectly with mysql and sqlite3.

How to install

Run python install to install, or place djorm_pool on your Python path.

You can also install it with: pip install djorm-ext-pool

How use it?

Very simple, put djorm_pool in your INSTALLED_APPS settings:



You can add options to sqlalchemy connection pool adding them in the settings “DJORM_POOL_OPTIONS”.


    "pool_size": 20,
    "max_overflow": 0,
    "recycle": 3600, # the default value

Also, can activate the pessimistic connection handling with DJORM_POOL_PESSIMISTIC:

# With this settings, every checkout of a connection from a pool
# executes an additional query for check the connection state.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for djorm-ext-pool, version 0.8.1
Filename, size File type Python version Upload date Hashes
Filename, size djorm-ext-pool-0.8.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page