title: Performance issue with loading a list of cached elements
body: <p>This is a general cache question, regardless of the code used behind, but for the record I am using Ehcache for Java.</p>
  
  <p>In a classic situation where a system have to load a dynamic list of elements from a database (so query is based on some criteria), are there any known tricks to improve loading performance by leveraging the cache system.</p>
  
  <p>My guess would to be to load a list of IDs instead of a list of elements and then fetch each one of them individually so we can leverage on the caching of the entities.</p>
  
  <p>Thanks for your help.</p>
  
  <p>PS: I hope the question is clear enough. Any suggestion is welcomed.</p>