Skip to content

Commit

Permalink
server-side cursors, not yet
Browse files Browse the repository at this point in the history
  • Loading branch information
adRn-s committed Oct 8, 2024
1 parent 397a83d commit 8094c6e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions backend/wui/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,16 @@

DATABASE_URL = os.environ.get("DATABASE_URL", "sqlite:////usr/src/db.sqlite")

DATABASES = {
"default": dj_database_url.config(
db_dict = dj_database_url.config(
default=dj_database_url.parse(DATABASE_URL),
conn_max_age=600,
conn_health_checks=True,
),
)

# db_dict['OPTIONS'] = { "server_side_binding": True }

DATABASES = {
"default": db_dict,
}

# Password validation
Expand Down

0 comments on commit 8094c6e

Please sign in to comment.