Add missing indexes to federation API destination queues (#2502)

* Add missing indexes to federation API destination queues

* Fix duplicate name
This commit is contained in:
Neil Alexander 2022-05-30 11:01:20 +01:00 committed by GitHub
parent 500124dd18
commit 247604979a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 0 deletions

View file

@ -35,6 +35,9 @@ CREATE TABLE IF NOT EXISTS federationsender_queue_json (
-- The JSON body. Text so that we preserve UTF-8.
json_body TEXT NOT NULL
);
CREATE UNIQUE INDEX IF NOT EXISTS federationsender_queue_json_json_nid_idx
ON federationsender_queue_json (json_nid);
`
const insertJSONSQL = "" +