diff --git a/migrations/2024-12-12-222846_add_search_combined_table/up.sql b/migrations/2024-12-12-222846_add_search_combined_table/up.sql index 31d82115a..a434ed024 100644 --- a/migrations/2024-12-12-222846_add_search_combined_table/up.sql +++ b/migrations/2024-12-12-222846_add_search_combined_table/up.sql @@ -21,6 +21,8 @@ CREATE INDEX idx_search_combined_published ON search_combined (published DESC, i CREATE INDEX idx_search_combined_published_asc ON search_combined (reverse_timestamp_sort (published) DESC, id DESC); +CREATE INDEX idx_search_combined_score ON search_combined (score DESC, id DESC); + -- Updating the history INSERT INTO search_combined (published, score, post_id, comment_id, community_id, person_id) SELECT