ID用于标记系统中的标记 [英] ID for tags in tag systems

查看:178
本文介绍了ID用于标记系统中的标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在实现一个类似于StackOverflow标记系统的标记系统。我在考虑当存储标签和与问题相关时,该关系将直接与标签名称,还是更好地创建一个字段tagID来链接标签的问题?看起来直接链接到标签名称更容易,但它看起来不好,主要是为什么当使用统计和/或标签分类(IMHO)可能很难管理这一点。另一个问题是当一个管理员决定修复标签名称。如果没有tagID与标签名称分开,那么我将更改表的键...

I'm implementing a tag system similar to StackOverflow tag system. I was thinking about when storing the tags and relating to a question, that relationship will be directly with the tag name or it's better create a field tagID to "link" the question with the tag? Looks that linking directly to tag name is easier, but it doesn't look good, mainly why when working with statistics and/or tag categorization (IMHO) can be hard to manage this. Another problem is when one admin decides "fix" a tag name. If there isn't a tagID separated from tag name, then I will be changing the key of the table...

你的想法是什么?

感谢所有回复。我将删除此帖子,因为有另一个帖子具有相同的主题。我不知道为什么搜索和建议不显示它的结果为我...

Thanks for all replies. I will delete this post since there is another posts with the same subject. I wonder why the search and the suggestion doesn't show it results for me...

推荐答案

看看这些相关早期SO问题:

Have a look at these related earlier SO questions:


标记的数据库设计

如何设计数据库模式为
支持使用
类别标记

是否有用于
标记的理想模式?

这篇关于ID用于标记系统中的标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆