---
title: "Discussion on \"I lost all my data in a Postgres to MongoDB migration. The product survived anyway.\" | Hashnode"
description: "Discussion on \"I lost all my data in a Postgres to MongoDB migration. The product survived anyway.\". Some context first. I run Invitease, a digital invitation product for weddings and events. Hosts create an animated invitation, every guest gets a personal link over WhatsApp or SMS, and RSVPs land in"
url: "https://hashnode.com/posts/i-lost-all-my-data-in-a-postgres-to-mongodb-migration-the-product-survived-anyway/6b0e5fe71dac811af286c622"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I lost all my data in a Postgres to MongoDB migration. The product survived anyway.](https://invitease.hashnode.dev/i-lost-all-my-data-in-a-postgres-to-mongodb-migration-the-product-survived-anyway?utm_source=hashnode&utm_medium=feed)

Some context first. I run Invitease, a digital invitation product for weddings and events. Hosts create an animated invitation, every guest gets a personal link over WhatsApp or SMS, and RSVPs land in

22h ago · 2 min read · invitease.hashnode.dev  
Read the article

## Written by

[Aliasgher Shakir](https://hashnode.com/@aliasghershakir)

@aliasghershakir

  
[View profile](https://hashnode.com/@aliasghershakir)

Software engineer. Building Invitease, digital invitations with RSVP tracking.

## Responses 1

Markdown supported · ⌘↵ to post

[SqlOtter](https://hashnode.com/@sqlotter)

[14h ago](https://hashnode.com/posts/i-lost-all-my-data-in-a-postgres-to-mongodb-migration-the-product-survived-anyway/6b0e5fe71dac811af286c622/comment/6b0ed6fc13fe1ba5097d3c39)

For the “historical data verified” gate, I’d add one check beyond matching totals: export a manifest of source event IDs with guest and RSVP counts per event, then generate the same manifest from MongoDB using the retained source IDs. Diff the manifests before cutover. In Postgres, aggregate guests and RSVPs separately before joining them to events so the joins don’t inflate the counts. I work on SqlOtter; its query-result CSV export can capture the source manifest after you verify the result count. Keep the full dump and restore test as separate safeguards, and leave guest names and phone numbers out of the manifest.
