2 Replies Latest reply on Oct 15, 2010 2:47 PM by annijos

    Deleting partial data from Pojo Cache

    annijos

      Hi All,

       

      We are using POJO cache in our application. We have a requirement to delete partial data from the cache.

      This data changes daily and requirement is to delete this data every start of the day and then lazily load it intraday as and when data is requested.

       

      We tried Cache.detach(fqn) method, but it looks like its not deleteing the data from the cache completely, we still see some internal references in the cache.

       

      Can someone help?

       

      Regards,

      Anirudha

        • 1. Re: Deleting partial data from Pojo Cache
          girishadat

          Hi Anirudha, Plz have a look @ https://jira.jboss.org/browse/PCACHE-85 and http://community.jboss.org/message/3192#3192. It is a known unresolved issue in PojoCache.

           

          I too faced problems like this in my near-realtime production applications handling gigabytes of data. And the issues almost solved as we completed the migration to Infinispan. I would strongly recommend to give it a try.

          • 2. Re: Deleting partial data from Pojo Cache
            annijos

            Thanks Girish. Let me try the workaround. Or last option, we are planning to stop and start cache at runtime and then populate the data again.

             

            One more question, did u develop any utility programs to monitor the cache in production? Some kind of query tool. For ex: node count, data specific to business entity etc. We are checking if we there any jboss cache APIs available for this.

             

            Jmx console is not allowed in production for us and in any case it hangs once data size gets bigger.

             

            Regards,

            Anirudha