Most efficient database design for a blog (posts and comments)

后端 未结 5 2003
你的背包
你的背包 2021-01-31 12:15

What would be the best way of designing a database to store blog posts and comments? I am currently thinking one table for posts, and another for comments, each with a post ID.<

5条回答
  •  失恋的感觉
    2021-01-31 12:34

    It seems to me, however, trawling through a large table of comments

    All the database vendors agree with you.

    They offer "indexes" to limit this.

提交回复
热议问题