
SQL editor, scheduler, and pipelines in one native Mac app. Daily notes for people who write queries.
Joined October 2026
- Tweets892
- Following193
- Followers50
- Likes1.1K
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…
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
QueryFlow retweeted
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/…
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.
👇
QueryFlow retweeted
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/…
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/
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-…
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…
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.
QueryFlow retweeted
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...
QueryFlow retweeted
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.
QueryFlow retweeted
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…
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
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…
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¢.
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.
QueryFlow retweeted
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.
encountered Postgres' query planner again and wrote about it.
blog.mchl.xyz/post/expressio…
QueryFlow retweeted
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]
























