Datomic Cache Tiers

Found segments float “up” the cache tiers, so they are cached close for future queries.

Tier Lower Bound Upper Bound
1 Object cache ~1×10−7 s
2 Valcache 1×10−5 s 1×10−4 s
3 Memcached 2.5×10−4 s 2×10−3 s
4 Storage 2×10−3 s 1×10−1 s
nanoseconds (ns)
microseconds (µs)
= 1,000 ns
milliseconds (ms)
= 1,000 µs
= 1,000,000 ns

Each pixel of height is 100 nanoseconds (ns), making the object cache one pixel tall.

Object cache
~100 ns
Valcache
10,000 –
100,000 ns
min
max
Memcached
250,000 –
2,000,000 ns
min
max
Storage
2,000,000 –
100,000,000 ns
min
max