Many database rows vs one comma separated values row

后端 未结 4 1516
萌比男神i
萌比男神i 2021-01-04 13:02

I\'m creating a table for allowing website users to become friends. I\'m trying to determine which is the best table design to store and return a user\'s friends. The goal i

4条回答
  •  北海茫月
    2021-01-04 13:20

    The first method is better in just about every way. Not only will you utilize your DBs indexes to find records faster, it will make modification far far easier.

提交回复
热议问题