mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 05:00:20 +00:00
Update progress when creating index
This commit is contained in:
parent
3b0fa77f50
commit
e395eb1108
1 changed files with 7 additions and 0 deletions
|
@ -158,6 +158,13 @@ class SearchStore(BackgroundUpdateStore):
|
||||||
)
|
)
|
||||||
conn.set_session(autocommit=False)
|
conn.set_session(autocommit=False)
|
||||||
|
|
||||||
|
pg = dict(progress)
|
||||||
|
pg["have_added_indexes"] = True
|
||||||
|
|
||||||
|
self._background_update_progress_txn(
|
||||||
|
conn.cursor(), self.EVENT_SEARCH_ORDER_UPDATE_NAME, progress
|
||||||
|
)
|
||||||
|
|
||||||
yield self.runWithConnection(create_index)
|
yield self.runWithConnection(create_index)
|
||||||
|
|
||||||
INSERT_CLUMP_SIZE = 1000
|
INSERT_CLUMP_SIZE = 1000
|
||||||
|
|
Loading…
Reference in a new issue