Skip to content

Commit 078ac79

Browse files
committed
Add an optional index on sum of Q and A.
This helps in finding users by their total number of posts.
1 parent 9bbb6c4 commit 078ac79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/optional_post.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ CREATE INDEX usertagqa_answers_idx ON UserTagQA USING btree (Answers)
2525
WITH (FILLFACTOR = 100);
2626
CREATE INDEX usertagqa_questions_answers_idx ON UserTagQA USING btree (Questions, Answers)
2727
WITH (FILLFACTOR = 100);
28+
CREATE INDEX usertagqa_all_qa_posts_idx ON UserTagQA USING btree ((Questions + Answers))
29+
WITH (FILLFACTOR = 100);
2830

2931

3032
-- QuestionAnswer TABLE

0 commit comments

Comments
 (0)