Skip to content

Commit

Permalink
Pgbouncer POC (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Jun 13, 2024
1 parent 959b5d8 commit 2ad1683
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions fyle_xero_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}

Expand Down

0 comments on commit 2ad1683

Please sign in to comment.