You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Julian Reschke <ju...@gmx.de> on 2018/03/16 10:10:39 UTC

Oak RevisionGC, was: Oak related question

On 2018-03-16 09:07, Kalach, Dmitry wrote:
> We're using Oak as JCR-implementation to save various files in our system.
> 
> This is usual in our system to change file and save it again.
> 
> Sometimes it causes a multiple versions of files in Oak, like this
> 
> "jcr:data" : {
>                  "r1622ec2af77-0-1" : "\":blobId:0100c49320202c3c0269aea8e3cf205f4765e4c4e55a7102fae9d09a4307c05f0aafdac20954\"",
>                  "r1622ed13bac-0-c8" : "\":blobId:0100c59320201328a6ecda51a2a57ab20e5d86173711f60ed07de212d2a81c918b3b56aecb63\"",
>                  "r1622ef69b14-0-ca" : "\":blobId:0100cb932020be60317852ad8925c2c51d5c6df4092f6bdfbc961666e64779642a04146e70dd\""
>          },
> 
> We have nodes with 30+ available versions. But we do not need them. Oak run shows this old versios as garbage, but revisions gc and blobs gc do not deleted them.
> 
> It is possible to delete all old versions for each node and leave only one actual version?
> ...

See 
<http://jackrabbit.apache.org/oak/docs/nodestore/documentmk.html#revision-gc>.

Best regards, Julian