lemmy/migrations/2023-06-24-185942_aggegates_published_indexes/up.sql

6 lines
243 B
MySQL
Raw Normal View History

2023-06-27 04:13:51 -04:00
-- Add indexes on published column (needed for hot_rank updates)
CREATE INDEX idx_community_aggregates_published ON community_aggregates (published DESC);
CREATE INDEX idx_comment_aggregates_published ON comment_aggregates (published DESC);
2023-06-27 04:13:51 -04:00