[ 
https://issues.apache.org/jira/browse/CLEREZZA-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903794#action_12903794
 ] 

Reto Bachmann-Gmür commented on CLEREZZA-286:
---------------------------------------------

I committed a patch, it is not yet part of any launcher and I'm not yet closing 
the issue as I think some more investigation on memory usage and performance 
consequences are needed, speed could be (additionally) improved with:
- lazy writing of files: the file is written in the background, till it is 
written the literal can be accessed from memory
- value-literals forwarding the value (like the byte array) to the store and 
computing the lexical form only on demand


To test the patchdo the following:
- start clerezza
- install the bundle setting and set its startlevel to 3
- shutdown clerezza
- delete the mgraphs that shall use the externalizer (i.e. the content graph) 
from the felix cache
- start clerezza again

if everything worked you will notice 
http://tpf.localhost/content.graph-externalizedliterals alongside the normaal 
contennt-graph

> Inserting lager literals takes too long
> ---------------------------------------
>
>                 Key: CLEREZZA-286
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-286
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Reto Bachmann-Gmür
>
> As binary resources are stored as literal values in the graph inserting 
> literals of many MB is not a seldom usage scenario. Inserting such literals 
> however take very long and thus require a very long write-lock on the graph 
> (e.g. on my laptop 9 seconds when uploading a 40MB file with TDB and 3 second 
> with Sesame)

-- 
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