Feb 28th, 2013, 05:17 AM
Cache getCount in PagingAndSortingRepository - improve response time
I have a data table with 7 million rows. Using PagingAndSortingRepository is excellent. One thing I would like to improve is caching the getcount method in PagingAndSortingRepository due to that this method takes along time to be executed. If the getcount will be cached it will make the response time much faster.
I found this issue important for others, please see link http://stackoverflow.com/questions/1...tal-count?rq=1 [URL="http://stackoverflow.com/questions/13357364/spring-data-cache-a-queries-total-count?rq=1"]
How can I get access to the getcount method of PagingAndSortingRepository in order to cache the value for each query?
Last edited by isys; Feb 28th, 2013 at 09:39 AM.