
SQL editor, scheduler, and pipelines in one native Mac app. Daily notes for people who write queries.
Joined October 2026
- Tweets798
- Following169
- Followers49
- Likes999
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: youtu.be/x2gxwMklboU
Try it free for 14 days: getqueryflow.com/?utm_source…
EXPLAIN ANALYZE doesn't just plan your DELETE. It runs it, and those rows are gone. To see the real plan and keep your data, wrap it in a transaction:
BEGIN;
EXPLAIN ANALYZE DELETE FROM orders WHERE status = 'test';
ROLLBACK;
Plain EXPLAIN only plans, so it's safe on its own.
1
tell us yours, then try our SQL editor, free for 14 days: getqueryflow.com/?utm_source…
12
Replying to @ericson4smith
The step that makes it real is a restore drill. Pick a timestamp, recover to a fresh box, and check a few row counts, because a WAL archive that has never been restored from is still a guess.
4
Replying to @Constantine_GT
Adding filename=true to that read_csv call is worth it too. You get a column showing which supplier file each row came from, which makes the price vs unit_price cleanup a lot easier to trace back.
1
QueryFlow retweeted
Supplier CSVs have the same headers in a different order? DuckDB can align them by name:
SELECT * FROM read_csv('quotes/*.csv', header=true, union_by_name=true);
Standardize the headers first. This won't tell you whether price and unit_price mean the same thing, or reconcile USD with EUR. Name-based alignment also uses more memory.
Docs reviewed; not tested.
github.com/duckdb/duckdb
#GitHub #DataTools #InternationalTrade
Replying to @RozenMD
An existing index that still loses usually comes down to column order or a function on the column. An index on (user_id, created_at) won't do much for a query filtering only on created_at, and WHERE lower(email) skips a plain index on email.
2
Replying to @isbkch
Worth adding a lock_timeout too. Even CONCURRENTLY has to wait for in-flight transactions at the start, and if it fails partway it leaves an INVALID index behind that the next migration run will trip over.
1
4
Replying to @eddieawad
The cross-service joins are where it pays off, but only if the IDs line up. Account IDs, ARNs, and bucket names come back in slightly different shapes per service, so a small normalized lookup table saves a lot of empty joins.
2
QueryFlow retweeted
Cloud ops metadata as Iceberg tables means "which buckets grew last month?" becomes a SQL query instead of console clicks.
The real win is joins across services, like AWS's own example: Glue tables no Athena query has read in 90 days. Databricks system tables already do this for the lakehouse, cost data included. teapawt.org/awswhatsnew/status/212…
Monday question: which database error message do you wish just said what it meant?
Ours is "must appear in the GROUP BY clause or be used in an aggregate function," which usually means one column in your SELECT never made it into the GROUP BY. What's yours?
1
6
keep that blocker query handy in our SQL editor, free for 14 days: getqueryflow.com/?utm_source…
6
A query stuck for ten minutes may not be working at all. It could be waiting on a lock. In Postgres, this shows who's stuck and who's blocking:
SELECT pid, pg_blocking_pids(pid) AS blocked_by, left(query, 50)
FROM pg_stat_activity
WHERE cardinality(pg_blocking_pids(pid)) > 0;

ALT Find the blocker. A Postgres query on pg_stat_activity that selects pid, pg_blocking_pids(pid) as blocked_by, and the first 50 characters of the query, filtered to sessions where pg_blocking_pids is not empty. Example result: a waiting UPDATE orders SET status = 'void', blocked by the session holding the lock.
1
7
QueryFlow retweeted
Monday brings #AI
Before trusting AI-written ad revenue SQL, test two impressions worth 1¢ each, where one matches two tracking events. The right total is 2¢. A plain SUM after the join gives 3¢, and SUM(DISTINCT revenue) gives 1¢.
Replying to @CoderVikas
And Sheet 6 is always Sales Final (2), the one where half the formulas still point at Sheet 1.
3
Replying to @kenyondigital
SQLite plus a static build is a great fit for government data, since it only changes on a schedule anyway. Keeping the raw import tables separate from the cleaned views helps too, so when an agency renames a column you only fix one view.
2
Replying to @AsumaCodes
A middle path works well with agents: raw SQL files with types generated from the live schema, like sqlc does. Every query stays readable, and a schema change breaks the build instead of a prod endpoint.
1
1
4
Replying to @mcolyer
DuckDB-WASM reading Parquet over HTTP range requests is what makes this work, since the browser only pulls the row groups it needs. Sorting the file by the column people filter on most keeps those reads small.
1
5
QueryFlow retweeted
Postgres tip: if CREATE INDEX CONCURRENTLY fails, it leaves an INVALID index behind. Queries ignore it, but every write still pays to keep it updated. A retry with IF NOT EXISTS just sees the name and skips. Drop it and run it again.
Replying to @caguilar51
REINDEX INDEX CONCURRENTLY can rebuild the invalid one in place since Postgres 12, so you keep the name and skip the drop. A migration check on SELECT indexrelid::regclass FROM pg_index WHERE NOT indisvalid also catches leftovers before they pile up.
2
run your BigQuery checks from our SQL editor, free for 14 days: getqueryflow.com/?utm_source…
3




