{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/5"}],"enrichment":{"capability":"Provides a gevent-based connection pool for Django's PostgreSQL database backend, reducing connection overhead in concurrent applications.","skillfed_tags":["connection-pooling","gevent","postgresql"],"use_cases":["Running Django under a gevent-based application server to reduce database connection churn in high-request-rate scenarios.","Using Django with task queues that spawn greenlets, where manual connection cleanup is needed to avoid connection leaks.","Deploying Django applications on systems with strict connection limits where connection pooling significantly improves throughput.","Switching between psycopg2 and psycopg3 backends while maintaining gevent compatibility."],"what_it_does":"django-db-geventpool adds a connection pooling layer to Django's PostgreSQL backend using gevent or eventlet. Instead of opening a new database connection for each request, it maintains a pool of reusable connections, reducing the overhead of connection setup and teardown in high-concurrency environments.\n\nThe package works by replacing Django's default database backend with a pooled variant. You configure it in Django settings by specifying the pool engine, setting maximum connections (default 4), and optionally the number of connections to reuse across requests. The package includes a decorator utility to clean up connections when using greenlets outside the normal request cycle (e.g., in Celery tasks).","worth_installing":"Yes, if you are running Django with gevent workers and need connection pooling. The low install friction and permissive Apache-2.0 license make it a straightforward addition. However, the aging maintenance status (537 days since last activity) and the fact that Django 5.1+ now has native pool support mean you should verify compatibility with your specific Django and database driver version before committing to production use."},"id":"django-db-geventpool","links":{"html":"https://skillfed.io/packages/django-db-geventpool","md":"https://skillfed.io/packages/django-db-geventpool.md","pypi":"https://pypi.org/project/django-db-geventpool/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-02-23","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"django-db-geventpool","python_support":"unspecified","summary":"Add a DB connection pool using gevent to django"},"popularity":{"monthly_downloads":90253,"position":13607,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.8"}
