[ 
https://issues.apache.org/jira/browse/JCR-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552664
 ] 

Thomas Mueller commented on JCR-1154:
-------------------------------------

Hi,

I have tested it again and my results are:

When storing an object, a temp file is created for most databases to find out 
how long the binary object is. For databases that support 
PreparedStatement.setBinaryStream with unknown size (currently only the H2 
database), no temp file is created.

When retrieving an object (prop.getStream()), the call sequence is: 1) 
DbDataStore.getRecord(..), which calls touch(..) but touch(..) returns quickly. 
 2) DbDataRecord.getStream(), which calls touch(..) but touch also doesn't do 
anything. Here a temp file is created, otherwise the connection would be 
blocked until the application read the blob. By the way, after running the 
test, I did not have any leftover temp files.

So if I run the test, everything looks fine to me.


> Database Data Store
> -------------------
>
>                 Key: JCR-1154
>                 URL: https://issues.apache.org/jira/browse/JCR-1154
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-core
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: jr-1.3.1-bea.zip
>
>
> We want to have a database backed data store implementation.
> An implementation using files is already available as part of JCR-926.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to