[ 
https://issues.apache.org/jira/browse/OAK-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138655#comment-14138655
 ] 

Chetan Mehrotra commented on OAK-2105:
--------------------------------------

As per [SERVER-13331|https://jira.mongodb.org/browse/SERVER-13331] Mongo 
Drivers also use a chunk size slightly less that power of 2. So make sense to 
reduce the size

> Review padding for blobs collection
> -----------------------------------
>
>                 Key: OAK-2105
>                 URL: https://issues.apache.org/jira/browse/OAK-2105
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core, mongomk
>            Reporter: Marcel Reutegger
>            Priority: Minor
>
> MongoDB does some default padding when it stores documents. The default
> policy adds some padding and then rounds up to the next power of 2 number
> of bytes. For the blobs collection with documents that are written once
> and never modified, this default behavior may not be optimal. E.g. the
> Oak lucene directory implementation splits data into 32k chunks and stores
> them as multi-valued binary properties. This leads to documents that are
> slightly over 32k bytes in size and MongoDB will allocate 64k for it.
> Half of the space is wasted.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to