mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-23 10:25:56 +00:00
Adding an index for score.
This commit is contained in:
parent
18ca39c559
commit
e0b521609d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue