Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的网站上有一个标记系统。试图弄清楚是否最好有一个主标记表和另一个引用主表的表,或者每行包含标记文本的表。
关于什么会更好地扩大规模的想法?
谢谢。
扩大规模不是你的问题,而是效率。
例如,服务器搜索整数值 42 比搜索字符串值“answer”要容易得多。它还占用更少的存储空间,尤其是在索引表中。然后,您可以查找或加入标签名称表(我更喜欢单独查找它,因为您可以使用 Memcache 或类似方法来存储名称以便更快地访问)