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
35
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
Replying to @DanteMMartin
Integration is where we'd expect the surprises too, and some are small, like division: in DuckDB 7 / 2 returns 3.5, while Postgres returns 3. Results that move between engines need a check on types, not just storage.
3
Replying to @Galo2027
Averages are where this bites hardest. SQL already skips NULLs in AVG and COUNT(col), so leaving gaps as NULL gives the honest mean for free, while COALESCE(reading, 0) quietly drags every station's average down.
2
Replying to @kelleymuro
Most of those breaks come from ALTER TABLE. SQLite can't change a column's type in place and only got DROP COLUMN in 3.35, so the usual fix is create a new table, copy the rows, and rename, or run local dev against MariaDB in Docker so it matches prod.
2
Replying to @willium
Our bet is the extension story decides how far this goes, since httpfs, spatial and the Iceberg reader are a big part of why people pick DuckDB over a plain engine.
2
Replying to @TobiM
The part we'll feel first is portability: a query written in DuckDB on a laptop running unchanged on the warehouse side, instead of the usual pass to fix date functions and casts. Curious how strict they'll be about extensions.
5
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,298
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
280
23,992
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
974
Replying to @nirajkvinit
The fix that keeps this cheap is HOT updates. If last_active isn't in any index and the page has free space, Postgres writes the new version on the same page and skips the index updates, so a lower fillfactor on busy tables pays off.
2
Replying to @karloscodes
SQLite in WAL mode on one box covers a lot of real apps. The thing to design around is the single writer, so keep write transactions short and set a busy_timeout so concurrent writes wait instead of failing with SQLITE_BUSY.
2
Replying to @IamAroke
Raw SQL for the heavy reads is where the wins usually are. One gotcha with pooling: behind PgBouncer in transaction mode, session state like SET search_path or advisory locks doesn't stick between transactions, so keep that inside each transaction.
6
Replying to @vishwanath_tns
Postgres can wrap most DDL in a transaction, so BEGIN and COMMIT around the whole migration makes the half-migrated state impossible. MySQL commits implicitly on DDL, so there the check has to query information_schema afterward instead of trusting the output.
1
4
Replying to @JeremyCMorgan
Timestamps are the loud mismatch. The quiet one is NULL ordering: BigQuery sorts NULLs first on ascending, DuckDB puts them last, so a ROW_NUMBER() dedupe without an explicit NULLS FIRST/LAST can keep different rows in CI than in prod.
60
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