From e2aae23575599f536c6243364f0ddfbe5758dd95 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 16 Jul 2020 23:27:24 -0400 Subject: [PATCH] commit db transaction after setting work_mem --- lbry/db/query_context.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbry/db/query_context.py b/lbry/db/query_context.py index 48ab32226..8239c5c4f 100644 --- a/lbry/db/query_context.py +++ b/lbry/db/query_context.py @@ -175,6 +175,7 @@ def context(with_timer: str = None) -> 'QueryContext': def set_postgres_settings(connection, _): cursor = connection.cursor() cursor.execute('SET work_mem="500MB";') + cursor.execute('COMMIT;') cursor.close()