{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"}],"enrichment":{"capability":"Provides connection pooling for Django database backends (MySQL, Oracle, PostgreSQL, and JDBC-based databases) using SQLAlchemy's pool implementation to manage persistent connections in multiprocess and multithreaded environments.","skillfed_tags":["connection-pooling","multiprocess-safe"],"use_cases":["High-traffic Django applications where connection creation overhead becomes a bottleneck and connection reuse would reduce latency","Multiprocess deployments (uWSGI, Gunicorn with multiple workers) where each process needs its own pool to avoid connection conflicts","Projects using Oracle or PostgreSQL that benefit from tunable pool parameters like connection recycling for long-lived connections","JDBC-based database access (Oracle via JDBC, OceanBase) when native Python drivers are unavailable or unsuitable","Applications with bursty traffic patterns where MAX_OVERFLOW allows temporary connection spikes beyond the base pool size"],"what_it_does":"django-db-connection-pool replaces Django's standard database backends with pooled alternatives that reuse connections across requests rather than creating new ones each time. It wraps SQLAlchemy's connection pool implementation and supports MySQL, Oracle, PostgreSQL, and JDBC-based databases (Oracle and OceanBase). The package is designed to work correctly in multiprocess environments like uWSGI, where each worker process maintains its own independent pool.\n\nYou configure it by changing your Django DATABASES ENGINE setting from the standard backend (e.g., `django.db.backends.mysql`) to the pooled equivalent (e.g., `dj_db_conn_pool.backends.mysql`), then optionally tune pool behavior via POOL_OPTIONS (pool size, overflow limit, connection recycling interval). The pool manages connection lifecycle automatically; you use Django's ORM and raw queries exactly as normal.","worth_installing":"Yes, if you run Django with a database that benefits from connection pooling (especially Oracle, PostgreSQL, or MySQL under load) and can tolerate the aging maintenance status. The package is stable and has no known vulnerabilities, but expect slower response to new issues. Not necessary for low-traffic or development-only projects where connection overhead is negligible."},"id":"django-db-connection-pool","links":{"html":"https://skillfed.io/packages/django-db-connection-pool","md":"https://skillfed.io/packages/django-db-connection-pool.md","pypi":"https://pypi.org/project/django-db-connection-pool/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-05-05","license_spdx":null,"license_treatment":"permissive","name":"django-db-connection-pool","python_support":"supports_current","summary":"Database connection pool component library for Django"},"popularity":{"monthly_downloads":199818,"position":9700,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.6"}
