mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 12:08:32 +03:00
oops
This commit is contained in:
parent
e365ad329f
commit
174eacc8ba
2 changed files with 2 additions and 2 deletions
|
@ -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)"
|
||||
|
|
|
@ -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', ?))"
|
||||
|
|
Loading…
Reference in a new issue