Skip to content

Commit

Permalink
fix: view_count 컬럼 기준 내림차순 정렬 인덱스로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hun-ca committed Jul 20, 2024
1 parent 13306e6 commit 3f6a688
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ CREATE TABLE ARTICLE_VIEW_COUNT

-- 조회수 순으로 아티클 조회시 사용하기 위한 인덱스
-- ex. SELECT * FROM ARTICLE_VIEW_COUNT ORDER BY view_count;
CREATE INDEX article_view_count_idx ON ARTICLE_VIEW_COUNT (view_count);
CREATE INDEX article_view_count_desc_idx1 ON ARTICLE_VIEW_COUNT(view_count DESC);

0 comments on commit 3f6a688

Please sign in to comment.