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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Have You Ever Migrated from MySQL to PostgresQL or Otherwise?

4 点作者 leejo将近 8 年前
I hear this suggested in talks &#x2F; on the web frequently enough to wonder if any company has ever successfully migrated from mySQL to PostgresQL, or from database technology foo to database technology bar, without coming close to killing the company or blocking the development team from doing more profitable work? Or is this something that many people suggest but have never actually done?<p>Just move to a &quot;real&quot; database and all your problems will be solved, right? I don&#x27;t think so - you will just replace one set of problems with another. And when you&#x27;re dealing with a schema that is multiples of TB, hundreds of tables, stored procs, triggers, poorly normalised, contains a mass of undocumented domain knowledge, goes back over a decade, then it&#x27;s not going to happen.<p>If it does happen then it&#x27;s probably over a period of years, or effectively a rewrite. Databases are like mortgages, they&#x27;re technical debt that take decades to pay off.<p>So, have you ever done the migration? How did it go?

2 条评论

seanharr11将近 8 年前
Just a quick interjection: I wrote a library that migrates between any 2 relational databases. In my case, I migrated off of Oracle and onto MySQL, but the tool supports any RDBMS supported by SQLAlchemy.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;seanharr11&#x2F;etlalchemy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;seanharr11&#x2F;etlalchemy</a><p>The best way to know is to try! It takes 4 lines of python to get you migrated.<p>PostgreSQL is a bit more feature rich in my findings, but for the majority of web development there really aren&#x27;t huge differences. In my experience, MySQL performs a bit better for lots of simple READ queries, while PostgreSQL can handle larger, more complex queries and very frequent WRITEs.
tmaly将近 8 年前
I migrated from a custom database to postgresql. I have to say I am much happier in terms of being able to generate complex reports.<p>The types and jsonb are also very nice.<p>I have used mysql early in my career, and I still use it for certain existing projects. I liked the simplicity of its command line, but postgresql has caught up, and they continue to add amazing features.
评论 #15086700 未加载