~/talk

Why your preview environments aren’t truly production-like

Talkat The Merge 2024 · 2024-06-13..06-14· [serverless, developer-experience]
slides:none on file

A pet project adds a Postgres index directly in production, causing Prisma migrate to detect schema drift at merge and block deployment. The concrete fix: create preview DBs by branching from production so Prisma migrate Dev sees drift inside the PR, update migrations there, then merge cleanly. Neon’s serverless Postgres uses a copy-on-write filesystem and cold starts under ~500 ms. PGAnonymizer on a 1 TB snapshot takes ~20 minutes, so snapshot sampling + anonymization is recommended.

AI-written summary · about

  1. 0:00Introduction and personal story
  2. 5:19Problems with preview environments
  3. 7:04Branching databases from production
  4. 9:13Q&A on branching and data handling
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.