我正忙着将一些 MySQL 特定代码移植到 Postgresql 以便与 Heroku 一起使用。只是想知道 Heroku 使用 Postgresql 而不是 MySQL 是否有任何具体原因?性能、架构等?
更新:来自 Heroku blog post :
At Heroku, we believe PostgreSQL offers the best mix of powerful features, data integrity, speed, standards compliance, and open-source code of any SQL database on the planet.
最佳答案
Postgres 在 many ways 中优于 mysql .您可以阅读这些关于从 mysql 到 postgres 迁移 rails 应用程序的帖子。虽然 mysql 是 more popular比 postgres,但 instagram is using postgres 可能是由于 these原因。我觉得 postgres 比 mysql 成熟和健壮得多。而mysql更容易使用。
Migrating MySQL to PostgreSQL in Rails « m i n d l e v
Converting Rails application data from MySQL to PostgreSQL
对于数据迁移,一个方便的小脚本:Rake task to transfer a Rails database, say from MySQL to Postgres and back again
关于mysql - Heroku 为什么使用 Postgresql?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4394379/