Skip to content

Commit

Permalink
Pgbouncer POC (#578)
Browse files Browse the repository at this point in the history
* Pgbouncer POC

* Pgbouncer POC
  • Loading branch information
ashwin1111 authored Jun 13, 2024
1 parent 71cf0cc commit 358a5a4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions fyle_netsuite_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 358a5a4

Please sign in to comment.