Home / Companies / Neon / Blog / Post Details
Content Deep Dive

Neon Twin: Automate Partial Data Dumps with Postgres and GitHub Actions

Blog post from Neon

Post Details
Company
Date Published
Author
Paul Scanlon
Word Count
1,762
Company Posts That Month
37
Language
English
Hacker News Points
-
Post removed?
No
Summary

Creating a Neon Twin allows developers to safely work with production data by using a partial copy of the production database without migrating it, thus avoiding complex and costly workflows. This approach involves setting up a recurring GitHub Action that performs a partial data dump from a Postgres production database and restores it to a Neon Serverless Postgres instance. Key steps include installing the necessary PostgreSQL version, dumping schema and data, cleaning the database, and restoring the schema and data to the development environment. The process ensures that foreign key constraints are maintained and involves modifying data extraction and restoration steps to ensure integrity. The GitHub Action requires secure connection strings stored as GitHub secrets. While using production data in development can raise privacy concerns, partial dumps and upcoming solutions for anonymizing sensitive data aim to address these issues, enabling effective and secure testing in isolated environments.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Secrets Management 8 602 110 53 -8%
Serverless 1 577 158 78 +5%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.