Skip to content

Commit

Permalink
Pgbouncer POC (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Jun 5, 2024
1 parent 6a18167 commit 912a0ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fyle_qbo_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,9 @@

# 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

CACHES = {'default': {'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'auth_cache'}}

Expand Down

0 comments on commit 912a0ff

Please sign in to comment.