Results 1 to 2 of 2

Thread: Cache getCount in PagingAndSortingRepository - improve response time

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    20

    Default 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?

    Thanks
    Last edited by isys; Feb 28th, 2013 at 09:39 AM.

  2. #2
    Join Date
    Oct 2009
    Posts
    20

    Default

    Please tell how to use Spring caching abstraction for PagingAndSortingRepository or CRUDRepository?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •