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)
QueryFlow retweeted
You can now speak T-SQL, MySQL, PostgreSQL, Snowflake, BigQuery SQL and other dialects directly to @duckdb. I just released v0.7.0 of my polyglot extension for DuckDB. Now a connection selects an input dialect, and DuckDB executes the SQL as it is. github.com/tobilg/duckdb-pol…
4
8
2
77
2,164
QueryFlow retweeted
A Microsoft software setting can open up underlying data sets in government dashboards to the public, a collaborative investigation found, providing access to information that isn’t visible in visualizations and, in some cases, catching officials off guard. A review of Microsoft’s Power BI dashboards at various levels of government by an independent researcher uncovered what appeared to be troves of information about federal hiring, public housing residents, veterans, juveniles and crime victims accessible via the APIs, or application programming interfaces, associated with the publications. A sample of those findings were independently replicated by Scoop News Group without retrieving individual records. scoopmedia.co/4jxzsns
1
3
258
TIL one more reason to not use ENUM and SET in MySQL, and I updated my blog post "MySQL Best Practice" with a link to Bug 122066 (thanks Ke Han for reporting this). jfg-mysql.blogspot.com/2026/…
2
1
1
75
QueryFlow retweeted
Postgres 19 finally brings REPACK (CONCURRENTLY) 🐘 It looks amazing in our lab (DBLab Forge): - 17x faster than pg_repack - 336x less lag than pg_squeeze - Plays nice with autovacuum The catch: one slow query can freeze your app or wipe out hours of work. 👇
3
9
36
1,606
Replying to @PostgreSQL
@PostgreSQL 19 lets VACUUM use streaming reads on GIN indexes. The tests reveal that it's 2.2x faster cleanup once index outgrows cache (26.6 GiB, ~25s to ~11s). A good example of measuring where a change matters and some critical changes needed in v19 .. @MSFTforPostgres techcommunity.microsoft.com/…
1
3
11
364
QueryFlow retweeted
OpenIVM is now available as a DuckDB community extension, bringing materialized views (MVs) to DuckDB and DuckLake. In TPC-DI SF100, batches with 1% and 0.01% inserts ran 3.0× faster than with DuckDB full refresh. GH: github.com/openivm/openivm Website: openivm.org/
16
4
92
13,558
QueryFlow retweeted
How Atlan Moved Its Data Platform from Spark & StarRocks to DuckDB on S3 “It almost seemed too good to be true: in-process, zero external dependencies, lightweight, and super fast.” –@MustafaHKhan, senior software engineer, Atlan @AtlanHQ processes metadata for some of the world’s largest companies, sometimes billions of rows on a busy day. The Atlan team moved that work off Spark onto #DuckDB running in-process on Parquet files and Iceberg tables in S3, then replaced StarRocks with a DuckDB service on ephemeral compute, cutting costs by ~40%. Here’s the story of how, and why, Atlan’s data platform is now DuckDB and object storage: duckdb.org/2026/12/01/atlan-…
6
22
6
154
16,769
QueryFlow retweeted
ClickHouse support on the @dbt_labs platform is now in public beta. Build and run dbt models against ClickHouse Cloud without managing an adapter. To get started, select ClickHouse under Account Settings → Connections in dbt. Learn more: clickhouse.com/blog/aws-rein…
1
5
2
22
1,913
QueryFlow retweeted
We are moving 50-ish Postgres databases from RDS to CloudNativePG. So far: 26 done, 17 TB moved, and 0 unplanned customer-facing downtime. Our engineer Yang-Hsing Lin explains the one question we asked at every step: if this goes wrong, are we still fine? Linked below.
3
3
26
4,365
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
3
1,579
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.
18
45
18
307
35,237
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.
3
1
4
86
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
999
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
38
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. www.nitter.cf/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
131
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
35
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
20
Asked Postgres for 10 failed rows ordered by ID and it scanned 10,000,000 rows (1,461 ms). Why: failures clump at the tail, so walking the PK index discards millions of healthy rows first. A Bitmap Heap Scan drops it to 9.6 ms.
2
1
1
33
Top 10 PostgreSQL mistakes that show up in prod: 1) SELECT * on hot paths. Wider rows, more IO, harder index-only scans, slower upgrades when columns grow. 2) No indexes for real queries. Filtering on user_id + status but only indexing user_id, then wondering why p95 jumps at 10M rows. 3) Adding indexes blindly. Every extra index slows writes, vacuum, and increases bloat. Measure before and after. 4) Missing composite index order. (a,b) helps a=… AND b=… and a=…, not b=… alone. 5) OFFSET pagination at scale. OFFSET 100000 still scans 100000. Use keyset pagination (WHERE id > last_id ORDER BY id LIMIT 50). 6) Long transactions. Autovacuum can’t clean dead tuples, replicas lag, and locks stick around longer than you think. 7) Ignoring VACUUM/autovacuum tuning. Default settings + write-heavy tables = bloat and surprise slowdowns weeks later. 8) No connection pooling. 500 pods each opening 20 conns turns into 10k backends, context switching, and memory pressure. Use pgbouncer. 9) Weak timeouts + retries. No statement_timeout, retries without jitter, and you amplify load during incidents. 10) No EXPLAIN (ANALYZE, BUFFERS) + poor observability. You ship a query, it regresses, and you have no slow query logs or pg_stat_statements to prove where the time went. [generated using my AI agent, hope you learnt something]
4
2
1
20
1,139