TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Zero-downtime migration from MongoBD to PostgresSQL

1 pointsby fosronover 2 years ago
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 comments

gtirloniover 2 years ago
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 未加载
surprisetalkover 2 years ago
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>