summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorAmber H. Brown <hawkowl@atleastfornow.net>2019-06-07 01:20:58 +1000
committerAmber H. Brown <hawkowl@atleastfornow.net>2019-06-07 01:20:58 +1000
commit3b6645d3bf3d3be449e1162e4135b677a1086ade (patch)
tree51e680a9cb3b241ee99cbcb86d2abfb46129a582 /synapse/storage
parentadd more comments (diff)
downloadsynapse-3b6645d3bf3d3be449e1162e4135b677a1086ade.tar.xz
remove background updates that arent needed
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/schema/full_schemas/54/stream_positions.sql34
1 files changed, 1 insertions, 33 deletions
diff --git a/synapse/storage/schema/full_schemas/54/stream_positions.sql b/synapse/storage/schema/full_schemas/54/stream_positions.sql
index 0febedcc5e..084a70db65 100644
--- a/synapse/storage/schema/full_schemas/54/stream_positions.sql
+++ b/synapse/storage/schema/full_schemas/54/stream_positions.sql
@@ -4,36 +4,4 @@ INSERT INTO federation_stream_position (type, stream_id) VALUES ('federation', -
 INSERT INTO federation_stream_position (type, stream_id) SELECT 'events', coalesce(max(stream_ordering), -1) FROM events;
 INSERT INTO user_directory_stream_pos (stream_id) VALUES (null);
 INSERT INTO stats_stream_pos (stream_id) VALUES (null);
-INSERT INTO event_push_summary_stream_ordering (stream_ordering) VALUES (0);
-
---- User dir population
-
--- Set up staging tables
-INSERT INTO background_updates (update_name, progress_json) VALUES
-    ('populate_user_directory_createtables', '{}');
-
--- Run through each room and update the user directory according to who is in it
-INSERT INTO background_updates (update_name, progress_json, depends_on) VALUES
-    ('populate_user_directory_process_rooms', '{}', 'populate_user_directory_createtables');
-
--- Insert all users, if search_all_users is on
-INSERT INTO background_updates (update_name, progress_json, depends_on) VALUES
-    ('populate_user_directory_process_users', '{}', 'populate_user_directory_process_rooms');
-
--- Clean up staging tables
-INSERT INTO background_updates (update_name, progress_json, depends_on) VALUES
-    ('populate_user_directory_cleanup', '{}', 'populate_user_directory_process_users');
-
---- Stats population
-
--- Set up staging tables
-INSERT INTO background_updates (update_name, progress_json) VALUES
-    ('populate_stats_createtables', '{}');
-
--- Run through each room and update stats
-INSERT INTO background_updates (update_name, progress_json, depends_on) VALUES
-    ('populate_stats_process_rooms', '{}', 'populate_stats_createtables');
-
--- Clean up staging tables
-INSERT INTO background_updates (update_name, progress_json, depends_on) VALUES
-    ('populate_stats_cleanup', '{}', 'populate_stats_process_rooms');
+INSERT INTO event_push_summary_stream_ordering (stream_ordering) VALUES (0);
\ No newline at end of file