4 ms·
Hi! I'm Joe from the Relay team. Good questions! It isn't quite as straightforward as you might expect - the interconnected nature of graph-like data means tha
by josephsavona 9y ago
Hi! I'm Joe from the Relay team.
Good questions! It isn't quite as straightforward as you might expect - the interconnected nature of graph-like data means that strategies that work for HTTP don't necessarily apply.
For example, storing per-field expiration times could incur additional memory overhead (you might end up with an object per field instead of per record). Storing per-record expiration times is tricky since the same record can have different fields fetched at different times. And a simple max cache size + LIFO/LRU/etc evication strategy means that the cache might evict a record that is still referenced by a view.
This type of TTL/expiration is something that we're continuing to explore.