From 57ab3f7498413b8f6ac65e636e5f593775f8b363 Mon Sep 17 00:00:00 2001 From: Ashwin Thanaraj <37061471+ashwin1111@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:46:21 +0530 Subject: [PATCH] Pgbouncer POC (#202) --- admin_settings/settings.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/admin_settings/settings.py b/admin_settings/settings.py index c1d2194..7b66a61 100644 --- a/admin_settings/settings.py +++ b/admin_settings/settings.py @@ -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',