Menu

EXPLAIN ANALYZE shows the HorizonDB SSD cache hits/misses
📰

EXPLAIN ANALYZE shows the HorizonDB SSD cache hits/misses

DEV Community: azure·Franck Pachot·14 days ago
#PKRjkS51
#devtoazure#devto#dev#cache#buffers
Long article (612 words) — no AI summary yet.
Reading 0:00
15s threshold

HorizonDB separates storage from compute: PostgreSQL compute runs in front of remote storage for high availability, while a local SSD cache reduces remote reads for low latency.

In a previous post , when HorizonDB was in preview, I used EXPLAIN (ANALYZE, BUFFERS) and I/O timings to estimate whether PostgreSQL reads were coming from the local SSD cache or remote storage.

This is now directly visible in the execution plan with the SSDCACHE option:

EXPLAIN ( ANALYZE , BUFFERS , SSDCACHE ) SELECT * FROM large ;

Enter fullscreen mode

Exit fullscreen mode

For example, here is a sequential scan of a 56 GB table:

QUERY PLAN --------------------------------------------------------------------------- Seq Scan on large ( actual time = 0.138 . .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.