RE: caching of query results

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Jan 28 2005 - 14:05:37 EST

  • Next message: Todd O'Bryan: "Re: CLOB and MySQL"

    > Hey Bryan (and others), one thing that "bit" me about the caching is
    > that it is too damned good!

    That's one way to put it ... ;-)

    > Be aware that things will live in your
    > cache for potentially long periods of time. I was doing caching in a
    > utility app and went home over the weekend. Came back, accessed it
    > again, and was getting data from the previous week, even though things
    > had changed over the weekend as our jobs were running. I guess I was
    > expecting them to timeout or something, but as long as they don't get
    > pushed out of the cache, they stay alive.

    Yeah, I am still looking for a decent expiring LRU Map implementation...
    The one we have (LRUMap from commons-collections) doesn't support that ...
    I think we should implement our own with timestamped entries... Definitely
    something I want to see in Cayenne.

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri Jan 28 2005 - 14:05:41 EST