From 358a5a40845ab9be3a324d2c5f9622890cf9e502 Mon Sep 17 00:00:00 2001 From: Ashwin Thanaraj <37061471+ashwin1111@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:45:45 +0530 Subject: [PATCH] Pgbouncer POC (#578) * Pgbouncer POC * Pgbouncer POC --- fyle_netsuite_api/settings.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/fyle_netsuite_api/settings.py b/fyle_netsuite_api/settings.py index b64fb077..e4650726 100644 --- a/fyle_netsuite_api/settings.py +++ b/fyle_netsuite_api/settings.py @@ -230,15 +230,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',