django database backend pooling for connections
Project description
Push messages with different backends for the Django framework.
Version | 1.1.0 |
Web | |
Download | http://pypi.python.org/pypi/django-database-conn-pool |
Source | https://github.com/luojidr/django-database-conn-pool |
Keywords | django, database pool, MySQL, PostgreSQL, Oracle |
About
MySQL & Oracle & PostgreSQL connection pool backends of Django, Be based on SQLAlchemy. Work fine in multiprocessing and multithreading django project.
Installation
You can install django-database-conn-pool either via the Python Package Index (PyPI) or from source.
To install using pip:
$ pip install -U django-database-conn-pool
and then add it to your installed apps:
(1.1): INSTALLED_APPS = [
...,
'database_pool',
...,
]
(1.2): DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'my_test',
'HOST': '127.0.0.1',
'PORT': 3306,
'USER': 'mysql_test',
'PASSWORD': '123456',
'POOL_OPTIONS' : {
'POOL_SIZE': 10,
'MAX_OVERFLOW': 15,
'RECYCLE': 60 * 60
}
},
......
}
OR
(2): DATABASES = {
'default': {
'ENGINE': 'database_pool.backends.mysql',
'NAME': 'my_test',
'HOST': '127.0.0.1',
'PORT': 3306,
'USER': 'mysql_test',
'PASSWORD': '123456',
'POOL_OPTIONS' : {
'POOL_SIZE': 10,
'MAX_OVERFLOW': 15,
'RECYCLE': 60 * 60
}
},
......
}
Downloading and installing from source
Download the latest version of django-database-conn-pool from http://pypi.python.org/pypi/django-database-conn-pool
You can install it by doing the following,:
$ tar xvfz django-database-pool-0.0.0.tar.gz
$ cd django-database-pool-0.0.0
$ python setup.py build
# python setup.py install
The last command must be executed as a privileged user if you are not currently using a virtualenv.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_database_conn_pool-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2896c3445c79aa7536c5ce979376a3ba0962f1f194e36ca59ec73ef138ad378 |
|
MD5 | 83c1f1dcf9da0ead8b386aeb94296400 |
|
BLAKE2b-256 | c1623b7b4eb2605061d5c637bf5b9b909f2ad5959fce1aadd424162d0e502464 |