Re: Resizable LRUQueryCache

2020-03-05 Thread Adrien Grand
Why do you need to resize it? And if you need to resize it, would it be good enough to drop the old cache and start using a new one? On Thu, Mar 5, 2020 at 12:54 AM Aadithya C wrote: > Hi, > > We are looking at implementing a setter function to resize the > LRUQueryCache on demand and evict the

Re: Resizable LRUQueryCache

2020-03-05 Thread Aadithya C
In my personal opinion, there are a few advantages of resizing - 1) The size of the cache is unpredictable as there is a fixed(guesstimate) accounting for the key size. With a resizable cache, we can potentially cache heavier queries and exploratively resize the cache when faced with memory press

Re: Resizable LRUQueryCache

2020-03-05 Thread Atri Sharma
On Fri, Mar 6, 2020 at 1:04 AM Aadithya C wrote: > > In my personal opinion, there are a few advantages of resizing - > > > 1) The size of the cache is unpredictable as there is a fixed(guesstimate) > accounting for the key size. With a resizable cache, we can potentially > cache heavier queries a