You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/04/04 11:01:42 UTC
[jira] [Updated] (OAK-1667) Encode Blob length as part of blobId in
DataStoreBlobStore
[ https://issues.apache.org/jira/browse/OAK-1667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra updated OAK-1667:
---------------------------------
Attachment: OAK-1667.patch
Patch for the same. By default length would not be encoded for compatibility purpose but can be enabled via a flag on FileDataStoreService config {{encodeLengthInId}}
[~amitj_76] and [~tmueller] can you review the patch
> Encode Blob length as part of blobId in DataStoreBlobStore
> ----------------------------------------------------------
>
> Key: OAK-1667
> URL: https://issues.apache.org/jira/browse/OAK-1667
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.1
>
> Attachments: OAK-1667.patch
>
>
> Currently to determine length of Blob in {{DataStoreBlobStore}} an explicit call is made to backing DataStore which in case of FileDataStore results in an OS call.
> As any file stored in DataStore is immutable and DataStore does not store the file in chunks the length information can be encoded in the BlobId itself and getLength call make use of that information
--
This message was sent by Atlassian JIRA
(v6.2#6252)