diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-05-11 11:57:02 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-05-11 12:05:22 +0100 |
commit | baafb85ba461b7d5073de94422fed0c43a417f46 (patch) | |
tree | 272b3edc2fefcd5b3baa998a8c1e37226b7b8474 /synapse/storage/schema/delta/41 | |
parent | Merge pull request #2214 from matrix-org/rav/hurry_up_purge (diff) | |
download | synapse-baafb85ba461b7d5073de94422fed0c43a417f46.tar.xz |
Add an index to event_search
- to make the purge API quicker
Diffstat (limited to 'synapse/storage/schema/delta/41')
-rw-r--r-- | synapse/storage/schema/delta/41/event_search_event_id_idx.sql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/synapse/storage/schema/delta/41/event_search_event_id_idx.sql b/synapse/storage/schema/delta/41/event_search_event_id_idx.sql new file mode 100644 index 0000000000..5d9cfecf36 --- /dev/null +++ b/synapse/storage/schema/delta/41/event_search_event_id_idx.sql @@ -0,0 +1,17 @@ +/* Copyright 2017 Vector Creations Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +INSERT into background_updates (update_name, progress_json) + VALUES ('event_search_event_id_idx', '{}'); |