jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Datastore and garbage collection
Date Mon, 09 Mar 2009 18:49:59 GMT
On Mon, Mar 9, 2009 at 7:10 PM, Paco Avila <monkiki@gmail.com> wrote:
> And after run
>
> GarbageCollector gc;
> SessionImpl si = (SessionImpl)session;
> gc = si.createDataStoreGarbageCollector();
>
> // optional (if you want to implement a progress bar / output):
> // gc.setScanEventListener(this);
> gc.scan();
> gc.stopScan();
>
> // delete old data
> gc.deleteUnused();
>
> all deleted documents are supposed to be remove from repository/datastore?

Yes.


> On Mon, Mar 9, 2009 at 6:38 PM, Paco Avila <monkiki@gmail.com> wrote:
>> Do you mean that GC only make sense if I delete documents from the
>> repository? I don't think that never run GC and keep all the documents
>> (deleted one included) is a good alternative in repositories with several GB
>> of size and big documents.

TB is the new GB ;-)

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message