TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: PostgreSQL or MySQL with Node.js?

3 点作者 jordanchan将近 10 年前
In absolute terms, Postgres has more features and has been used at scale by Instagram, etc. while MySQL has a much bigger user base and has been used at scale by likes of Facebook, Quora, etc. But how about in combination with NodeJS?<p>Which is 1) more popular, 2) easier to setup, and 3) better for scaling out (not up)?

1 comment

trcollinson将近 10 年前
Are you using a specific back end framework or just plan old node?<p>I generally don&#x27;t ask questions about databases like you are here but I have used both mysql and postgres with large node projects (as well as others!).<p>Popular: I would say this feels like a toss up. Both are pretty popular. I think they go back and forth on pure popularity. Both have strong communities. Mysql is &quot;owned&quot; by oracle so I guess you can take that into the popularity equation.<p>Easy to set up: again, a toss up. Both are relatively easy to set up initially. Both have a huge number of optional configurations depending on your needs. Anecdotally, mysql has a lot of engine options depending on needs. Out of the box, they are fairly similar on setup. Also fairly similar on node setup and configuration.<p>Scaling out: these are both RDBMS systems so scaling out is always an adventure. This has little to do with node and a ton more to do with your scaling needs. Both have the capability. Neither is easy.
评论 #10024046 未加载