mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-02 23:31:41 +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_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
|
-- Updating the history
|
||||||
INSERT INTO search_combined (published, score, post_id, comment_id, community_id, person_id)
|
INSERT INTO search_combined (published, score, post_id, comment_id, community_id, person_id)
|
||||||
SELECT
|
SELECT
|
||||||
|
|
Loading…
Reference in a new issue