mautrix-whatsapp/database/upgrades/57-message-timestamp-index.sql

3 lines
184 B
MySQL
Raw Normal View History

2023-06-16 11:58:57 +02:00
-- v57 (compatible with v45+): Add index for message timestamp to make read receipt handling faster
CREATE INDEX message_timestamp_idx ON message (chat_jid, chat_receiver, timestamp);