为何我看到 ruby 社区中,大多数人都是使用的 Postgres 数据库。而 Mysql 则很少见到。
这是有什么原因么。
https://ruby-china.org/topics/37815
感觉就像一个习惯,其实老一点的 Rails 项目用 MySQL 的也不少
难道不是因为 mysql 是 oracle 的吗?
猜测 PostgreSQL 的流行程度增长,和 Heroku 有很大的关系。
如果没记错的话,Heroku 是第一个把部署简单的 PaaS 做大做好的公司。而这个平台最先支持的编程语言是 Ruby,最先提供的数据库服务就是 PostgreSQL。
pg 特性多一点?
Migrating Uber from MySQL to PostgreSQL
Why Uber Engineering Switched from Postgres to MySQL
在阿里云提供了比较完美的 mysql5.6 支持的情况下,在国内让 PG 流行起来还是有点难
pg 是用了就回不去的存在
from twitter:
Me 5 years ago: Use services oriented architecture for all your code!
Me 3 years ago: Use CQRS/ES for all your code!
Me now: Just use PostgreSQL
https://twitter.com/hubertlepicki/status/1073229975254392832