We currently use LRU (lru crate) for prepared statements per-connection caching. We should add support for LFU and make it configurable.
Sometimes LFU is better than LRU, especially when the cardinality of statements is very high and some are more popular than others.
We currently use LRU (
lrucrate) for prepared statements per-connection caching. We should add support for LFU and make it configurable.Sometimes LFU is better than LRU, especially when the cardinality of statements is very high and some are more popular than others.