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.1.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-postgrespool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dca81d58c15fd3396de4e9763a8dbcbafd28f86dd0d7a5b94620cd7a882b48e9
MD5 deaf4c2382ede8f43c9548809c6849f0
BLAKE2b-256 ba79e2697010d04e886e87c6993db33d431c6220fd51eec2704181e95552309f

See more details on using hashes here.

Supported by

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