commit db transaction after setting work_mem
This commit is contained in:
parent
2ae700feb3
commit
e2aae23575
1 changed files with 1 additions and 0 deletions
|
@ -175,6 +175,7 @@ def context(with_timer: str = None) -> 'QueryContext':
|
||||||
def set_postgres_settings(connection, _):
|
def set_postgres_settings(connection, _):
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
cursor.execute('SET work_mem="500MB";')
|
cursor.execute('SET work_mem="500MB";')
|
||||||
|
cursor.execute('COMMIT;')
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue