QueryFlow (@getQueryFlow) header
QueryFlow (@getQueryFlow) profile picture

SQL editor, scheduler, and pipelines in one native Mac app. Daily notes for people who write queries.

Joined October 2026
Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)Photo by QueryFlow (@getQueryFlow)
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…
2
158
An ALTER TABLE waiting for its lock makes new queries on that table wait too, even plain SELECTs. A long read holds the table, the ALTER queues behind it, and everything else queues behind the ALTER. In Postgres, cap the wait first: SET lock_timeout = '5s';
2
1
30
BigQuery cross-cloud connections went GA on Nov 25. Query S3 or Azure files through an external table from any BigQuery region. Worth checking: cross-cloud caching is off by default. Turn it on and repeat reads hit a cache in the connection's region. getqueryflow.com/?utm_source…
2
35
Amazon Redshift extension for DuckDB brings warehouse scale to local SQL Amazon Redshift now offers the Redshift extension for DuckDB, an open source extension that lets you run Amazon Redshift SQL from a local DuckDB session. Query results come back as DuckDB relations, so y...
1
1
1
1,293
QueryFlow retweeted
Announcing #DuckDB Scales 🦆🏋🏽 DuckDB Scales allows DuckDB to distribute the work across many nodes to process queries on 100 TB+ datasets. Starting now, DuckDB Scales is available as a preview in #AWS Athena, with an open source release planned for H1 '27.
16
42
17
279
23,809
Tuesday 60-second challenge. Four values: 10, 20, 30, 40. What do percentile_cont(0.5) and percentile_disc(0.5) return in Postgres? Answer: 25 and 20. cont interpolates between the two middle values. disc returns the first real value at or past the halfway mark.
8
Need a rough row count on a huge Postgres table? count(*) has to count every row. This reads the planner's estimate instead: SELECT reltuples::bigint FROM pg_class WHERE relname = 'orders'; The catch: it's -1 until the table has been vacuumed or analyzed.
8
During a Postgres migration the disk can fill up with WAL, the log of every change. A replication slot keeps that log until the new database reads it, and during the hours long initial copy it reads nothing, so cleanup stops. Raise max_slot_wal_keep_size before you start.
2
1
3
69
A startup kept BigQuery in prod and pointed dbt at DuckDB for CI. Result: 639 s of integration tests per merge became 46 s. The one trap is timestamps. Set TZ=UTC or DuckDB's local-zone default will disagree with BigQuery. Easy pattern to copy. duckdb.org/2026/11/24/sprout…
2
2
13
973
Put the rules in the table, not only in the app. A NOT NULL, CHECK, or foreign key is enforced on every write: the app, the import script, and the one-off fix someone runs at 5 PM on a Friday. App validation only covers the app.
5
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.
5
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
13
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
1
1
2
36
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. teapaw.org/awswhatsnew/status/212…
AWS expands system tables to 20 AWS services and adds analytics visualizations AWS now publishes metadata from 20 AWS services as more than 100 system tables that you can query as open Apache Iceberg tables. The tables include data from storage, database, streaming, analytics...
1
1
1
122
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;
1
9
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¢.
1
1
28
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.
1
1
1
19
BigQuery's billing controls went GA on Nov 23. One turns off on-demand billing, so any query without an assigned reservation fails: ALTER ORGANIZATION SET OPTIONS ( `region-us.disable_on_demand_billing` = true); Find the unreserved projects first, or Monday's reports will.
1
7