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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Zero-downtime migration from MongoBD to PostgresSQL

1 点作者 fosron超过 2 年前
Hey,<p>we are looking for an efficient way to migrate away from MongoDB to Postgres. Were hosted on Mongo Cloud ATM but i dont think theyll provide us a solution.<p>Key thing is were running a system which can not go down, and looking online i could not find anything that seems reliable and would help us to achieve that. Developing an in house solution for a one-off job also seems to be not the best one.<p>Maybe someone has experience regarding that, and could at least point in a good way? Would be really helpful. Thanks!

2 条评论

gtirloni超过 2 年前
I&#x27;m afraid there is no quick solution. Your app will have to write to both temporarily and make the switch, no way around adding logic to it.<p>Even if a multi-DB polyglot proxy&#x2F;gateway exists, you&#x27;d still have to specify the relations, constraints, etc... at which point you&#x27;d better do that in your app to avoid lock-in.<p>Google for &quot;mongodb to postgres downtime&quot;. I&#x27;ve found a few detailed articles.
评论 #34882057 未加载
surprisetalk超过 2 年前
I can think of a few different solutions for you, depending on your write&#x2F;read loads and DB size. Unfortunately, I don&#x27;t think any of your solutions will be quick&#x2F;easy.<p>Feel free to schedule a call with me! I&#x27;ve done 3 large NoSQL to PG migrations for different orgs.<p>[1] <a href="https:&#x2F;&#x2F;calendly.com&#x2F;taylor-town&#x2F;30min" rel="nofollow">https:&#x2F;&#x2F;calendly.com&#x2F;taylor-town&#x2F;30min</a>