Skip to content

Commit f40d5db

Browse files
committed
Add an index on parent_id.
1 parent d6ad3bc commit f40d5db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/Posts_post.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ CREATE INDEX posts_viewcount_idx ON Posts USING btree (ViewCount)
1717
WITH (FILLFACTOR = 100);
1818
CREATE INDEX posts_accepted_answer_id_idx ON Posts USING btree (AcceptedAnswerId)
1919
WITH (FILLFACTOR = 100);
20+
CREATE INDEX posts_parent_id_idx ON Posts USING btree (ParentId)
21+
WITH (FILLFACTOR = 100);

0 commit comments

Comments
 (0)