Skip to content
LATEST
Technology

Snowflake Postgres mirroring costs fall 73% at 2-minute refresh

The two-day test also showed 26-second median live-view freshness and slower batch inserts on mirrored PostgreSQL tables.

Snowflake Postgres mirroring costs fall 73% at 2-minute refresh

Snowflake Postgres mirroring showed 26-second median freshness and 37-second p90 visibility in TABLE$live in a two-day benchmark published Nov. 17 on Snowflake's Builders Blog.

The same Nov. 17 blog post said moving Snowflake's serverless apply task to a 2-minute refresh interval from 30 seconds cut loaded cost by 73%; a 10-minute interval cut it by 88%.

Ondřej Blaha, the post's author, said: "Freshness: new rows show up in TABLE$live after ~26 s (median), ~37 s (p90)." TABLE$live is the live view that exposes changes before the scheduled apply run updates the base table.

The base table can lag behind TABLE$live by as much as one refresh interval, Blaha said in the blog post. That creates a trade-off for teams choosing between faster table-level updates and lower serverless compute consumption.

On spending, Blaha said: "Switching to 2 minutes cut the loaded cost by 73 %, to 10 minutes by 88 %." The blog post said the serverless apply task cost 0.063 credits/h when idle at a 30-second interval and 0.25 credits/h under steady write load.

The source-database impact depended on workload type. The blog post said small OLTP transactions, or short application writes, showed little effect, while "Batch inserts into a mirrored table were 20-30 % slower than into a non-mirrored table on the same instance."

The blog post said Snowflake Postgres became generally available on Feb. 24 and data mirroring followed on Oct. 15. It described mirroring as a push-based system: a change data capture worker decodes the PostgreSQL write-ahead log, or WAL, into row-level changes about every 15 seconds, while Snowflake applies pending batches on the selected refresh interval.

The benchmark environment was AWS eu-central-1, Enterprise edition and Postgres 18 on STANDARD_M, with 1 vCPU, 4 GB RAM and a 50 GB disk, according to the blog post. Blaha said the whole benchmark cost about 13 credits, or about $51.

The operational caveats were material for audit and migration planning. The blog post said "any ADD, DROP or RENAME COLUMN wipes that table's $changes history," tables without a primary key become insert-only, RESTART_MIRROR re-copies every table, numeric values without precision become FLOAT, and 2-D arrays become NULL.

For bulk imports, Blaha recommended committing in chunks of up to 100,000 rows. The blog post also said frequently updated tables accumulate Time Travel storage of 2 to 2.5 times their active size, with $changes retaining seven days of history on top.

More stories

Latest news