Results 1 to 4 of 4

Thread: Spring-Data-MongoDB Caching.

  1. #1
    Join Date
    Sep 2008
    Posts
    6

    Default Spring-Data-MongoDB Caching.

    Hi, does spring-data-mongoDB or mongoDB java driver support something like session cache or second level cache that Hibernate support ? For example every time I load document from mongoDB by its identifier, the DB query is executed but it would be faster to load data from local cache. Of course I know that starting from spring 3.1 caching abstraction is added

  2. #2
    Join Date
    Apr 2006
    Location
    Dresden, Germany
    Posts
    483

    Default

    Spring caching abstraction is the way to go…

  3. #3
    Join Date
    Oct 2009
    Posts
    20

    Default

    Quote Originally Posted by babltiga View Post
    the DB query is executed but it would be faster to load data from local cache
    I agree, this is a main problem also for me.
    I think there should be a option to cache the getCount() of each query.
    Therefor I posted the issue here http://forum.springsource.org/showth...-response-time

  4. #4
    Join Date
    Oct 2009
    Posts
    20

    Default

    Oliver,
    I would like to use Spring caching abstraction for the CRUDRepository. Please give some guide lines
    Thanks

Posting Permissions

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