Skip to main content

Postgres Connection Pooling for Django.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

This is a simple Postgres Connection Pooling backend for Django, powered by the lovely and beautiful SQLAlchemy.

Experimental: use with caution.

Usage

Using Django-PostgresPool is simple, just set django_postgrespool as your connection engine:

DATABASES = {
    'default': {
        'ENGINE': 'django_postgrespool'

If you’re using the dj-database-url module:

import dj_database_url

DATABASES['default'] = dj_database_url.config()
DATABASES['default']['ENGINE'] = 'django_postgrespool'

Everything should work as expected.

Installation

Installing Django-PostgresPool is simple, with pip:

$ pip install django-postgrespool

Configuration

Optionally, you can provide additional options to pass to SQLAlchemy’s pool creation:

DATABASE_POOL_ARGS = {
    'max_overflow': 10,
    'pool_size': 5,
    'recycle': 300
}

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

django-postgrespool-0.2.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file django-postgrespool-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-postgrespool-0.2.0.tar.gz
Algorithm Hash digest
SHA256 98b14f091afcf933ab366839ed245698f4b5e2c43cea829e1a691657506d8b79
MD5 4284d7ae8e7f6ad9f7ff83ccbb043403
BLAKE2b-256 7274f624fc0ac773fe9e430aa8415d43d845cd064f41b1b4c7c7822861dbe87a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page