mysql - 鬼博客的sqlite vs mysql?

标签 mysql node.js sqlite ghost-blog

我目前正在我的服务器上设置 ghost。我将主持自己的博客,可能还会为我的 friend 们开设更多博客。

Ghost 默认使用 sqlite。 Sqlite 适用于小型应用程序和开发环境。

如果 ghost 运行良好,我计划将我的博客运行至少 1 到 2 年或更长时间。博客包含大量图像和文本。随着时间的推移,sqlite 数据库会随着越来越多的图像等而增长。

为了这个目的使用 sqlite 几年可以吗? MySQL 会更强大,但设置起来也更复杂。

什么是 Ghost 博客的最佳选择?

最佳答案

请注意,数据库性能很大程度上取决于数据量(直到您用完本地磁盘空间),而是取决于并发量。

SQLite documentation说:

SQLite usually will work great as the database engine for low to medium traffic websites (which is to say, 99.9% of all websites). The amount of web traffic that SQLite can handle depends, of course, on how heavily the website uses its database. Generally speaking, any site that gets fewer than 100K hits/day should work fine with SQLite. The 100K hits/day figure is a conservative estimate, not a hard upper bound. SQLite has been demonstrated to work with 10 times that amount of traffic.
[…]
But if your website is so busy that you are thinking of splitting the database component off onto a separate machine, then you should definitely consider using an enterprise-class client/server database engine instead of SQLite.

关于mysql - 鬼博客的sqlite vs mysql?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19661274/

相关文章:

android - 将整个 sqlite 数据库上传到谷歌应用引擎

sqlite - 在 INSERT 触发器中插入时触发器递归级别过多

php - Doctrine :创建实体后不保留日期时区

php - 无法使用 PhpMyAdmin 正确连接到外部服务器

mysql - CakePHP 2 无法连接到 MySQL 数据库

MySQL 根据条件合并多行并将结果连接到一个字段中

node.js - Loopback3定期调用远程方法或API

javascript - Node.js:单变量,多个 Promise

node.js - 使用 Node.js 复制和转换文件

sql - 在 SQLite 中将一列中的所有值选择为一个字符串?