{"repo":"altairbow/django-db-connection-pool","free":true,"listed":false,"github":"https://github.com/altairbow/django-db-connection-pool","clone":"git clone https://github.com/altairbow/django-db-connection-pool.git","description":"Database connection pool component library for Django","language":"Python","stars":248,"topics":["django","database","pool","pooling","database-pool","database-pooling","jdbc","postgresql","mysql","postgres"],"license":"MIT","category":"databases-storage","readme_excerpt":"django-db-connection-pool :star: If this project is helpful to you, please light up the star, Thank you:smile: MySQL & Oracle & PostgreSQL & JDBC (Oracle, OceanBase) connection pool components for Django, Be based on SQLAlchemy. Works fine in multiprocessing and multithreading django project. 中文版 Quickstart Installation Install with pip with all engines: or select specific engines: or one of mysql,oracle,postgresql,jdbc Update settings.DATABASES MySQL change django.db.backends.mysql to dj db conn pool.backends.mysql : Oracle change django.db.backends.oracle to dj db conn pool.backends.oracle : PostgreSQL change django.db.backends.postgresql to dj db conn pool.backends.postgresql : Pool options(optional) you can provide additional options to pass to SQLAlchemy's pool creation, key's name is POOL OPTIONS : django-db-connection-pool has more configuration options here: PoolContainer.pool default params Here's the explanation of these options(from SQLAlchemy's Doc): pool size : The size of the pool to be maintained, defaults to 5. This is the largest number of connections that will be kept persistently in the pool. Note that the pool begins with no connections; once this number of connections is requested, that number of connections will remain. pool size can be set to 0 to indicate no size limit; to disable pooling, use a :class: sqlalchemy.pool.NullPool instead. max overflow : The maximum overflow size of the pool. When the number of checked-out connections reaches the size set","default_branch":null,"files":null,"tree":[],"storefront":"/r/altairbow","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/altairbow/django-db-connection-pool/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}