matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.64k stars 663 forks source link

Duplicate indexes present on PostgreSQL #3389

Open Omar007 opened 2 months ago

Omar007 commented 2 months ago

Background information

Description

Steps to reproduce

Indexes in question: Table Affected Columns Index 1 Index 2
federationsender_queue_edus json_nid federationsender_queue_edus_nid_idx federationsender_queue_edus_json_nid_idx
federationsender_queue_pdus json_nid federationsender_queue_pdus_json_nid_idx federationsender_queue_pdus_pdus_json_nid_idx
federationsender_relay_servers server_name federationsender_relay_servers_server_name_idx federationsender_relay_server_server_name_relay_server_name_key
keyserver_one_time_keys user_id, device_id keyserver_one_time_keys_idx keyserver_one_time_keys_unique
syncapi_output_room_events room_id syncapi_output_room_events_room_id_idx syncapi_output_room_events_recent_events_idx
syncapi_peeks room_id syncapi_peeks_room_id_idx syncapi_peeks_room_id_user_id_device_id_key
syncapi_presence user_id syncapi_presence_user_id presence_presences_unique
syncapi_receipts room_id syncapi_receipts_room_id syncapi_receipts_unique
userapi_pushers app_id, pushkey userapi_pusher_app_id_pushkey_idx userapi_pusher_app_id_pushkey_localpart_idx
Omar007 commented 2 months ago

Here is the same result/information from a pgHero deployment:
pghero