Because I want the cache to not consume any memory. Is there a better way to
achieve this?

A) When I leave out setExpiryPolicyFactory(), it gets a little better:
        63195 63488 66804 65116 64771 64045 64234 65057 63991 64061 64213 64374 

B) When I then replace Long l = longCache.get(i); with longCache.put(i, i);
Long l = longCache.get(i); I get:
        255167 407166 321233 454752 455788 460617 426439 375939 471698 409165
469483 452079 
  Note that each run uses the same cache.

In my understanding, the difference between A and B is the call to
NullCache.load() for A. Why is that so slow? Is it possible other ways of
retrieving the data are tried first, and then, after those fail, the
NullCache is used?
Thanks again for your help.
Pascal




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Read-through-cache-performance-tp14085p14116.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to