So I am creating a website that has multiple topics, people post content in those topics and people can comment on the content. People can also comment on comments, but only one level deep. So there will be comments and subcomments and nothing else. All the comments on the subcomments will be listed as subcomments to the main comment. I don't like 20 levels deep comments where each level is marked by indentation. It ruins the look of my page.
Now I am thinking of 3 tables here. One table for content which will have content number as well as topic number. A comment table with comment number, content number and topic number field. A subcomment table with subcomment number, comment number and content number and topic number.
Now I am thinking about what my optimal strategy should be when assigning indexes in the subcomment table. Should I assign subcomment id alone a index or should I assign subcomment id, comment id, content id and topic number all the four a Index?