Skip to content

Commit

Permalink
Pgbouncer POC (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Jun 13, 2024
1 parent 4c2567c commit 57ab3f7
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions admin_settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,11 @@

# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
# Defaulting django engine for qcluster
if len(sys.argv) > 0 and sys.argv[1] == 'qcluster':
DATABASES = {
'default': dj_database_url.config()
}
else:
DATABASES = {
'default': dj_database_url.config(engine='django_db_geventpool.backends.postgresql_psycopg2')
}
DATABASES = {
'default': dj_database_url.config()
}

DATABASES['default']['DISABLE_SERVER_SIDE_CURSORS'] = True

DATABASES['cache_db'] = {
'ENGINE': 'django.db.backends.sqlite3',
Expand Down

0 comments on commit 57ab3f7

Please sign in to comment.