From ff0b7728da49eefbc013dc2f3452067146df61d0 Mon Sep 17 00:00:00 2001 From: albertkun Date: Tue, 13 Feb 2024 14:03:59 -0800 Subject: [PATCH] fix: unnecessary database configuration statements --- fastapi/app/database.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/fastapi/app/database.py b/fastapi/app/database.py index ac200ca..87ab5cd 100644 --- a/fastapi/app/database.py +++ b/fastapi/app/database.py @@ -29,9 +29,6 @@ def create_async_uri(uri): def get_db(): db = Session() try: - db.execute("SET log_statement_stats = OFF;") - db.execute("SET log_duration = OFF;") - db.execute("SET log_connections = OFF;") yield db finally: db.close()