From c4923a4352221416434c56365ae1d6de1071c50a Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Fri, 31 May 2024 20:51:32 +0530 Subject: [PATCH] Pgbouncer POC --- fyle_xero_api/settings.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fyle_xero_api/settings.py b/fyle_xero_api/settings.py index 693f6d7b..baacbac1 100644 --- a/fyle_xero_api/settings.py +++ b/fyle_xero_api/settings.py @@ -213,16 +213,9 @@ # Database # https://docs.djangoproject.com/en/2.2/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", "NAME": "cache.db"}