Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)
Thread persistent connection pool.

QueuePool is similar to, but maintains 
a queue for each thread, thus ensuring 
that a thread always receives the same 
connections.

In most of my tests with django, only one 
connection is maintained by thread.

src/d/j/django-orm-2.0.5/django_orm/backends/sqlite3/pool.py   django-orm(Download)
# -*- coding: utf-8 -*-
 
from django.conf import settings
from django_orm.pool import QueuePool, PersistentPool
from django_orm import POOLTYPE_PERSISTENT, POOLTYPE_QUEUE

src/d/j/django-orm-2.0.5/django_orm/backends/sqlite3/base.py   django-orm(Download)
# -*- coding: utf-8 -*-
 
from django.db.backends.sqlite3.base import DatabaseWrapper as BaseDatabaseWrapper
from django_orm.pool import QueuePool, PersistentPool
from django_orm import POOLTYPE_PERSISTENT, POOLTYPE_QUEUE

src/d/j/django-orm-2.0.5/django_orm/backends/postgresql_psycopg2/pool.py   django-orm(Download)
# -*- coding: utf-8 -*-
 
from django.conf import settings
from django_orm.pool import QueuePool, PersistentPool
from django_orm import POOLTYPE_PERSISTENT, POOLTYPE_QUEUE

src/d/j/django-orm-2.0.5/django_orm/backends/mysql/pool.py   django-orm(Download)
# -*- coding: utf-8 -*-
 
from django.conf import settings
from django_orm.pool import QueuePool, PersistentPool
from django_orm import POOLTYPE_PERSISTENT, POOLTYPE_QUEUE

src/d/j/django-orm-2.0.5/django_orm/backends/mysql/base.py   django-orm(Download)
from django.conf import settings
 
from django_orm.pool import QueuePool, PersistentPool
from django_orm import POOLTYPE_PERSISTENT, POOLTYPE_QUEUE
from django_orm.backends.mysql.creation import DatabaseCreation