Stop reading schema diagrams.
We pointed QueryFlow at a public MySQL database nobody on the team had ever opened. 64 tables. No docs.
Asked "what's in this database." It explained the schema. Asked for a query with a join. It wrote it, explained the join, ran it. Rows on screen in about a minute.
Then hit Watch this and it pings Slack or email when the row count or a value changes. Or schedule it to land in S3, SFTP or your inbox every morning.
Watch: https://t.co/Ldihbl4gbU
Try it free for 14 days: https://t.co/H2rBPoXtHu
Every index speeds up some reads and adds work to the writes that keep it current. The Postgres docs say indexes add overhead to the database as a whole, so use them sensibly.
Before adding another index, check idx_scan in pg_stat_user_indexes to see which ones get used.
Comparing that rows-removed count to the rows returned is a quick way to spot a missing composite index, especially when the filter column and the sort column live in different indexes. Running ANALYZE on the safe copy first matters too, since stale stats there can send you chasing a plan production never picks.
@pcamp96 Writing the JSON to a temp file and renaming it over the old one keeps a crash mid-save from leaving you with half a wishlist. Thirty days of backups is honestly more disaster recovery than a lot of production apps have.
SQLite on one box makes most of the moving parts disappear, and pairing it with Litestream for continuous backups to S3 covers the part people usually worry about. WAL mode and a busy_timeout from day one save a lot of "database is locked" surprises once background jobs start writing too.
The WAL gap mostly comes from full-page writes: random UUIDs scatter inserts across the whole index, so each checkpoint dirties far more pages, while uuidv7 keeps new rows near the right edge of the btree. Per-region sequences reissuing ids after failover is the scarier finding, since that shows up later as conflicting rows rather than a slow insert.
Tuesday 60-second challenge. In Postgres, what do these two return?
SELECT date '2026-11-24' - date '2026-11-01'
SELECT timestamp '2026-11-24' - timestamp '2026-11-01'
Same days on the calendar, but they don't come back as the same type. Guess before you run them.
BigQuery's Migration Service got a validation service on Nov 19 (Preview). It compares migrated tables with the source on schema, on aggregates like row counts and SUM, and row by row.
Good order for any migration: match counts and totals first, then find the rows that differ.
@Officiall_TOM_K It gets easier when you do the cleanup in steps, with one CTE per step: trim the text, turn blank strings into NULL with NULLIF, then remove duplicates. You can select from each step and look at the rows, which feels a lot closer to working in Excel.
@NovaOrbiting The lock is the other half of that test. On a big Postgres table, adding a CHECK (col IS NOT NULL) constraint as NOT VALID, validating it separately, and only then setting NOT NULL keeps the backfill step from blocking writes.
@kjrose Running that query on a schedule and writing the results to a table turns it into a trend, so you can see whether the missing list actually shrinks after each patch window. That history also makes a much easier case to management than a single snapshot.
Partitioning the history table by day makes this a lot easier, since archiving turns into copying one old partition to cold storage and dropping it instead of running a huge DELETE that bloats the table and keeps vacuum busy. Do you keep the archived history queryable, or is it restore on demand?
@ashleypeacock The p99 drop is the one that matters most here, since every write to a single Durable Object is serialized and that tail is what users feel as a stalled request. Curious whether the gain came from batching commits or from the storage layer underneath.
A UNIQUE column in Postgres will happily take more than one NULL, because NULLs aren't treated as equal to each other.
INSERT INTO users (email) VALUES (NULL), (NULL)
-- both rows go in
On Postgres 15 and later, UNIQUE NULLS NOT DISTINCT makes the second NULL fail.
If scheduled jobs stop when someone quits QueryFlow, turn on Run Jobs When App Is Closed in Settings, Scheduling. Snowflake, Redshift (IAM keys), BigQuery and Databricks jobs to S3, SFTP, a file or email keep running. Other jobs still need the app open.
https://t.co/viStfbyBaF
The hard part is that most incidents get answered by a join nobody pre-built, like deploys against error rates by customer tier, so whatever sits on the database needs the schema documented well enough to write that join correctly. Fast queries matter less than knowing which table holds the truth.
@Breefield Until they ship it, one stopgap is doing the conversion in the app layer with current tzdata and storing UTC plus the zone name, so the database never needs the new rules. It also turns the next tz change into a redeploy instead of waiting on an engine upgrade.