diff options
author | hera <matrix@template.upcloud.com> | 2018-01-09 18:06:30 +0000 |
---|---|---|
committer | hera <matrix@template.upcloud.com> | 2018-01-09 18:06:30 +0000 |
commit | 00c7472624f731dc2c4c9a54fe7a7a81b8840503 (patch) | |
tree | ba17a2ca83f84d644bee7a645cd42c8a95e865db | |
parent | oops, tweak work_mem when actually storing (diff) | |
download | synapse-00c7472624f731dc2c4c9a54fe7a7a81b8840503.tar.xz |
oops
-rw-r--r-- | synapse/storage/room.py | 2 | ||||
-rw-r--r-- | synapse/storage/search.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py index 6cfd09ac9d..9f373b47e0 100644 --- a/synapse/storage/room.py +++ b/synapse/storage/room.py @@ -310,7 +310,7 @@ class RoomStore(SQLBaseStore): def _store_event_search_txn(self, txn, event, key, value): if isinstance(self.database_engine, PostgresEngine): - txn.execute("SET work_mem='256KB'") + txn.execute("SET work_mem='256kB'") sql = ( "INSERT INTO event_search" " (event_id, room_id, key, vector, stream_ordering, origin_server_ts)" diff --git a/synapse/storage/search.py b/synapse/storage/search.py index f77b09018a..bbaef5e1a8 100644 --- a/synapse/storage/search.py +++ b/synapse/storage/search.py @@ -106,7 +106,7 @@ class SearchStore(BackgroundUpdateStore): event_search_rows.append((event_id, room_id, key, value)) if isinstance(self.database_engine, PostgresEngine): - txn.execute("SET work_mem='256KB'") + txn.execute("SET work_mem='256kB'") sql = ( "INSERT INTO event_search (event_id, room_id, key, vector)" " VALUES (?,?,?,to_tsvector('english', ?))" |