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()