AFAIK, when using filedatastore, jackrabbit calculates a sha1 ckecksum over the 
content of a file. The checksum will then be split up and used as 
folder/filename. 

If you have 2 identical files, the checksum will be exactly the same resulting 
in one file on the disk.

Daniel

Von meinem iPhone gesendet

Am 16.04.2013 um 15:34 schrieb "Marek Slama" <[email protected]>:

> Hello,
> 
> I want to ask if Jackrabbit makes any space optimization when new version of
> binary content is created. For example:
> I have file node F: I create version V1 and then version V2 but I actually 
> do not check in my code if anything has changed.
> so V1 1.0 and V2 1.1 content are the same. Is binary content stored twice or
> only once?
> 
> ie. my versionable node is:
>             Node fileNode = documentNode.addNode(docxName, NodeType.NT_
> FILE);
>             fileNode.addMixin(NodeType.MIX_VERSIONABLE);
>             fileNode.addMixin(NodeType.MIX_CREATED);
> 
> Thanks
> 
> Marek
> 
> =

Reply via email to