mysql - Wordpress.com 是否为所有用户使用一组表?

标签 mysql blogs

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/

相关文章:

api - 是否有 Restful 博客 API

html - 社交媒体按钮设置为标题

php - 我应该选择什么 PHP 博客软件

php - PHP/MySQL 循环问题

php - Mysql 保存/加载但没有帖子和名称字段

php - 如何将这三个sql查询合并为一个?

php - 为什么我的博客发不了?

mysql - 查询以获取客户进行的平均交易次数

mysql - 没有锁表的 MySQL

c# - 寻找 .NET 的 MetaWebLog 客户端库。一个存在吗?