{ "info": { "author": "Altair Bow", "author_email": "altair.bow@foxmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# django-db-connection-pool\n\nMySQL & Oracle connection pool backends of Django, Be based on SQLAlchemy.\n\n\n#### Quickstart\n1. Install with `pip`:\n ```bash\n $ pip install django-db-connection-pool\n ```\n\n2. Configuration\n * ##### MySQL \n change `django.db.backends.mysql` to `dj_db_conn_pool.backends.mysql`:\n ```\n DATABASES = {\n 'default': {\n ...\n 'ENGINE': 'dj_db_conn_pool.backends.mysql'\n ...\n }\n }\n ```\n \n * ##### Oracle \n change `django.db.backends.oracle` to `dj_db_conn_pool.backends.oracle`:\n ```\n DATABASES = {\n 'default': {\n ...\n 'ENGINE': 'dj_db_conn_pool.backends.oracle'\n ...\n }\n }\n ```\n * ##### pool options(optional)\n you can provide additional options to pass to SQLAlchemy's pool creation, key's name is `POOL_OPTIONS`:\n ```\n DATABASES = {\n 'default': {\n ...\n 'POOL_OPTIONS' : {\n 'POOL_SIZE': 10,\n 'MAX_OVERFLOW': 10\n }\n ...\n }\n }\n ```\n \n Here's explanation of these options(from SQLAlchemy's Doc):\n \n * **pool_size**: The size of the pool to be maintained,\n defaults to 5. This is the largest number of connections that\n will be kept persistently in the pool. Note that the pool\n begins with no connections; once this number of connections\n is requested, that number of connections will remain.\n `pool_size` can be set to 0 to indicate no size limit; to\n disable pooling, use a :class:`~sqlalchemy.pool.NullPool`\n instead.\n \n * **max_overflow**: The maximum overflow size of the\n pool. When the number of checked-out connections reaches the\n size set in pool_size, additional connections will be\n returned up to this limit. When those additional connections\n are returned to the pool, they are disconnected and\n discarded. It follows then that the total number of\n simultaneous connections the pool will allow is pool_size +\n `max_overflow`, and the total number of \"sleeping\"\n connections the pool will allow is pool_size. `max_overflow`\n can be set to -1 to indicate no overflow limit; no limit\n will be placed on the total number of concurrent\n connections. Defaults to 10.\n \n or you can use dj_db_conn_pool.setup to change default arguments(for each pool's creation), before using database pool:\n ```python\n import dj_db_conn_pool\n dj_db_conn_pool.setup(pool_size=100, max_overflow=50)\n ```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://pypi.python.org/pypi/django-db-connection-pool/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/altairbow/django-db-connection-pool", "keywords": "django,db,database,persistent,connection,pool", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-db-connection-pool", "package_url": "https://pypi.org/project/django-db-connection-pool/", "platform": "", "project_url": "https://pypi.org/project/django-db-connection-pool/", "project_urls": { "Download": "https://pypi.python.org/pypi/django-db-connection-pool/", "Homepage": "https://github.com/altairbow/django-db-connection-pool" }, "release_url": "https://pypi.org/project/django-db-connection-pool/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Persistent database connection backends for Django", "version": "1.0.2" }, "last_serial": 5834287, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "46eb861f4024204124be4400b1780ec5", "sha256": "1d64a78db9416e587e6ed5c3aef9976d2310d6805ef60de5bc9e38bbae875e34" }, "downloads": -1, "filename": "django-db-connection-pool-1.0.0.tar.gz", "has_sig": false, "md5_digest": "46eb861f4024204124be4400b1780ec5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5890, "upload_time": "2019-03-25T09:39:05", "url": "https://files.pythonhosted.org/packages/ab/09/b2ae968785f65a18f4cbbb039e464e63dfc3602789ba68f58701720e42d1/django-db-connection-pool-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e4d5971fb33e46bf0360f6edc598082f", "sha256": "afc81c01d73c7f3b6086654fb9b6f2cb3b0cc469f78cc107fa6d660f00ca463b" }, "downloads": -1, "filename": "django-db-connection-pool-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e4d5971fb33e46bf0360f6edc598082f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5280, "upload_time": "2019-04-05T10:22:56", "url": "https://files.pythonhosted.org/packages/3a/d8/ca32cfe4a22e9f5e3a6104c70abe828bb4186dbf0b8ba84288b4d2b43629/django-db-connection-pool-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "a1c070c3c04b7047d8b83a247e13ffe3", "sha256": "cbb7143c2103b2268c317ca9230f90f1e275b54b2d45d52bcc1bcfe6378ca3d2" }, "downloads": -1, "filename": "django-db-connection-pool-1.0.2.tar.gz", "has_sig": false, "md5_digest": "a1c070c3c04b7047d8b83a247e13ffe3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6287, "upload_time": "2019-09-16T06:37:41", "url": "https://files.pythonhosted.org/packages/56/80/b6e66e409b03073a6933eb68857fb0a3f5bad31488b9d60547df0873fece/django-db-connection-pool-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a1c070c3c04b7047d8b83a247e13ffe3", "sha256": "cbb7143c2103b2268c317ca9230f90f1e275b54b2d45d52bcc1bcfe6378ca3d2" }, "downloads": -1, "filename": "django-db-connection-pool-1.0.2.tar.gz", "has_sig": false, "md5_digest": "a1c070c3c04b7047d8b83a247e13ffe3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6287, "upload_time": "2019-09-16T06:37:41", "url": "https://files.pythonhosted.org/packages/56/80/b6e66e409b03073a6933eb68857fb0a3f5bad31488b9d60547df0873fece/django-db-connection-pool-1.0.2.tar.gz" } ] }