Skip to main content

Add a MySQL connection pool for django using gevent

Project description

# django-mysql-geventpool


Mysql Connection Pooling backend for Django 2.0+ using gevent, only supports Python 3.4 or newer.
It works with gunicorn async worker via gevent.

This implimentation is based on django-db-geventpool(

## install

pip install django-mysql-geventpool

## Settings

Add the 'django_mysql_geventpool' modules to the INSTALLED_APPS like this:

# ...other installed applications...


Add MAX_CONNS to OPTIONS to set the maximun number of connections allowed to database (default=4)

'default': {
'ENGINE': 'django_mysql_geventpool.backends.mysql',
'NAME': 'dbname',
'USER': 'dbuser',
'PASSWORD': 'dbpassword',
'HOST': 'dbhost',
'PORT': 'dbport',

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-mysql-geventpool-0.2.3.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page