Matt Ryan created OAK-7091:
------------------------------
Summary: Avoid streaming data twice in composite data store
Key: OAK-7091
URL: https://issues.apache.org/jira/browse/OAK-7091
Project: Jackrabbit Oak
Issue Type: Technical task
Reporter: Matt Ryan
Assignee: Matt Ryan
When adding a new record to an Oak instance that is using composite data store,
the blob stream will be read twice before it is stored - once by the composite
data store (to determine the blob ID) and again by the delegate. We could add
a method to the CompositeDataStoreAware interface wherein the data store can be
told which blob ID to use (from the composite) so that it doesn't have to
process the stream again. Then the composite data store, after having read the
stream to a temporary file, can pass an input stream from the temporary file to
the delegate along with the computed blob ID, to avoid reading the stream twice.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)