wp.com 是否为每个新博客创建一组新表,或者所有博客数据都存储在一组表中(布局如: http://codex.wordpress.org/Database_Description )?
在 MySQL 中为每个博客创建一组表是否是一个好主意,或者 MySQL 是否能够处理大量博客,每个博客的评论/标签/类别/帖子都存储在一组表中?
最佳答案
有关 WordPress 的工作原理,请查看 Wordpress MU
我快速猜测有一个共享的用户表,每个博客都有自己的数据库,因为对象之间的关系仅适用于单个博客。
编辑:来自 MU 常见问题解答:
WordPress MU creates tables for each blog, which is the system we found worked best for plugin compatibility and scaling after lots of testing and trial and error. This takes advantage of existing OS-level and MySQL query caches and also makes it infinitely easier to segment user data, which is what all services that grow beyond a single box eventually have to do.
关于mysql - Wordpress.com 是否为所有用户使用一组表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1780255/