Scaling Web Applications and Tagging - Digg, Del.icio.us, StackOverflow

寵の児 提交于 2019-12-18 11:37:45

问题


How do websites like Digg, Del.icio.us, and StackOverflow implement tagging?

I know this other question has an accepted answer of a many-to-many relation with a cross ref table. But how do the "big boys" do it? The same way? How is it scaling?


回答1:


Here is the oft-quoted article which breaks down tagging schemas by real performance metrics: http://tagging.pui.ch/post/37027746608/tagsystems-performance-tests

The author notes that the founder of delicious explains using an RDBMS for tagging simply does not scale to many millions of items under load. An alternative like Lucene may fit better in such a case.




回答2:


I am sure that the additional JOIN queries would be too expensive in a very large system.

The tags are either stored non-normalised in the main table, or there may be a separate tag table which has a row for each tagged item.



来源:https://stackoverflow.com/questions/551453/scaling-web-applications-and-tagging-digg-del-icio-us-stackoverflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!