diff options
author | Erik Johnston <erik@matrix.org> | 2016-04-21 17:16:11 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-04-21 17:16:11 +0100 |
commit | 51bb339ab2130ab29ee9fcfec48d8e62f46c75f6 (patch) | |
tree | b2aa9fdbb39ea611fb79038a69b0274fe3f305ae /synapse/storage/schema | |
parent | Add missing run_upgrade (diff) | |
download | synapse-51bb339ab2130ab29ee9fcfec48d8e62f46c75f6.tar.xz |
Create index concurrently
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r-- | synapse/storage/schema/delta/31/search_update.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/synapse/storage/schema/delta/31/search_update.py b/synapse/storage/schema/delta/31/search_update.py index 989e990dbd..470ae0c005 100644 --- a/synapse/storage/schema/delta/31/search_update.py +++ b/synapse/storage/schema/delta/31/search_update.py @@ -24,11 +24,6 @@ logger = logging.getLogger(__name__) ALTER_TABLE = """ ALTER TABLE event_search ADD COLUMN origin_server_ts BIGINT; ALTER TABLE event_search ADD COLUMN stream_ordering BIGINT; - -CREATE INDEX event_search_room_order ON event_search( - room_id, origin_server_ts, stream_ordering -); -CREATE INDEX event_search_order ON event_search(origin_server_ts, stream_ordering); """ @@ -52,6 +47,7 @@ def run_create(cur, database_engine, *args, **kwargs): "target_min_stream_id_inclusive": min_stream_id, "max_stream_id_exclusive": max_stream_id + 1, "rows_inserted": 0, + "have_added_indexes": False, } progress_json = ujson.dumps(progress) |