[
https://issues.apache.org/jira/browse/OAK-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16912519#comment-16912519
]
Matt Ryan commented on OAK-8552:
--------------------------------
I wrote a simple test program which first creates a basic repo with binaries in
it, then tries to get a download URI for each binary and times each step
(getting the {{Binary}} object, and then requesting the download URI).
Here's what I found:
* Getting the {{Binary}} object from the repository takes almost no time.
Average time is around 30 microseconds (0.03 milliseconds).
* Almost all of the total time is in getting the download URI. In my testing
today, average time to get a download URI is around 65 milliseconds for a
binary uploaded through the JCR and around 200 milliseconds for a binary
uploaded via direct upload. The difference between the two is probably the
cost of the {{getReference()}} call mentioned above; my guess is the binaries
uploaded via the JCR are probably still in cache so that makes
{{getReference()}} faster for those.
I will try a few different optimizations and post results.
> Minimize network calls required when creating a direct download URI
> -------------------------------------------------------------------
>
> Key: OAK-8552
> URL: https://issues.apache.org/jira/browse/OAK-8552
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: blob-cloud, blob-cloud-azure
> Reporter: Matt Ryan
> Assignee: Matt Ryan
> Priority: Major
>
> We need to isolate and try to optimize network calls required to create a
> direct download URI.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)