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 . .…