2 Replies Latest reply on Apr 19, 2006 5:31 PM by jaikiran

    Few questions on FileCacheLoader

    jaikiran

      A few questions regarding FileCacheLoader:

      - Does the location to which the FileCacheLoader stores, need to be cleaned out on every application restart?

      - What happens if the drive is full. Is this taken care of? Looking into the code of FileCacheLoader, i believe IOException may occur on disk being full, right?

      - Can FileCacheLoader be used in a production environment?

      P.S. The reason behind using FileCacheLoader along with maintaining a eviction policy, is to avoid additional database queries that would be fired in case the object was evicted from cache because of over-capacity(number of nodes exceeding maxNodes).





        • 1. Re: Few questions on FileCacheLoader
          manik

           

          "jaikiran" wrote:

          - Does the location to which the FileCacheLoader stores, need to be cleaned out on every application restart?


          Nope. If you do this you won't be persisting anything!

          "jaikiran" wrote:

          - What happens if the drive is full. Is this taken care of? Looking into the code of FileCacheLoader, i believe IOException may occur on disk being full, right?


          Yes

          "jaikiran" wrote:

          - Can FileCacheLoader be used in a production environment?


          I wouldn't recommend it! :-) File systems are inherently bad at dealing with concurrency and transactional integrity. I'd recommend BDBJE.

          • 2. Re: Few questions on FileCacheLoader
            jaikiran

            Thanks Manik for those answers.

            -Jaikiran