Hallo,
sicherlich kennt ihr die Funktion des so genannten Taggens.
Ich möchte das meine Besucher bzw das Team bestimmte Artikel mit Stichwörtern versehen können, um so eine bessere Suchmöglichkeit zu bieten.
Mir ist nur noch nicht klar, wie ich die Tags am besten abspeichere.
Soll ich diese Infos mit in die Artikel-Tabelle schreiben, also in etwa so:
Code:
table: artikel
artikel_id artikel_bez artikel_tagid
1 text1 1,2,3
2 text2
3 text3 1,89
table: tag
tag_id tag_bez
1 blub
2 bla
3 test
89 tag89
oder ist es besser eine dritte tabelle dafür zu führen in der die zuordnung enthalten ist:
Code:
table: artikel
artikel_id artikel_bez
1 text1
2 text2
3 text3
table: tag
tag_id tag_bez
1 blub
2 bla
3 test
89 tag89
table: artikeltag
artikeltag_id artikeltag_artikel artikeltag_tag
1 1 1
2 1 2
3 1 3
4 3 1
5 3 89
Welches System würdet ihr wählen? gibt es Vor- bzw Nachteile? Oder würdet einen komplett anderen Ansatz verfolgen?