hfultrastrong

https://stackoverflow.com/questions/334183/what-is-the-most-efficient-way-to-store-tags-in-a-database

One item is going to have many tags. And one tag will belong to many items. This implies to me that you\'ll quite possibly need an intermediary table to overcome the many-to-many obstacle.

Something like:

Table: Items
Columns: Item_ID, Item_Title, Content

Table: Tags
Columns: Tag_ID, Tag_Title

Table: Items_Tags
Columns: Item_ID, Tag_ID

It might be that your web app is insanely popular and need denormalising down the road, but it\'s pointless muddying the waters too early.

分类:

技术点:

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-12-26
猜你喜欢
  • 2022-01-11
  • 2021-12-05
  • 2021-10-07
  • 2021-06-16
  • 2021-12-26
  • 2022-01-14
  • 2022-01-17
相关资源
相似解决方案