jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Datastore and garbage collection
Date Mon, 09 Mar 2009 17:20:01 GMT

On Mon, Mar 9, 2009 at 6:02 PM, Paco Avila <monkiki@gmail.com> wrote:
> The real question should be "Do I need to call the garbage collection in my
> app" ? :P
> And the answer seems to be "YES"!

Well, it depends. If your usage patterns permit, you could also just
ignore garbage collection entirely.

If you don't have lots of short-lived files (or binary properties) in
the repository, then the cost of keeping some extra unused binaries in
the data store may well be smaller than the cost of getting rid of

It's worth estimating the rate at which you remove binary data from
the repository, and using the result to calculate the best garbage
collection intervals. The low (and declining) cost of storage and the
typical usage patterns of many content applications (especially ones
with versioning) may well suggest that the most economic alternative
is to never run the garbage collector.


Jukka Zitting

View raw message