From 8b5ba3aeba6c7bcbe6d7ca00d065d0efaf57e27f Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Fri, 31 May 2024 20:53:16 +0530 Subject: [PATCH] Pgbouncer POC --- sage_desktop_api/settings.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/sage_desktop_api/settings.py b/sage_desktop_api/settings.py index f5fc6720..ff8ac3f0 100644 --- a/sage_desktop_api/settings.py +++ b/sage_desktop_api/settings.py @@ -216,15 +216,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',