diff options
author | Erik Johnston <erikj@matrix.org> | 2023-09-14 16:20:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 16:20:47 +0100 |
commit | 329597022ee02516e5cbee11fcd566e05609b724 (patch) | |
tree | 386ca9ea5f6d47308a8832f009da92f0e6754917 /synapse/storage/schema | |
parent | Speed up deleting to-device messages task (#16318) (diff) | |
download | synapse-329597022ee02516e5cbee11fcd566e05609b724.tar.xz |
Some minor performance fixes for task schedular (#16313)
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r-- | synapse/storage/schema/main/delta/82/02_scheduled_tasks_index.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/synapse/storage/schema/main/delta/82/02_scheduled_tasks_index.sql b/synapse/storage/schema/main/delta/82/02_scheduled_tasks_index.sql new file mode 100644 index 0000000000..6b90275139 --- /dev/null +++ b/synapse/storage/schema/main/delta/82/02_scheduled_tasks_index.sql @@ -0,0 +1,16 @@ +/* Copyright 2023 The Matrix.org Foundation C.I.C + * + * 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. + */ + +CREATE INDEX IF NOT EXISTS scheduled_tasks_timestamp ON scheduled_tasks(timestamp); |