Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 2121 invoked from network); 19 Apr 2007 06:39:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 06:39:40 -0000 Received: (qmail 77308 invoked by uid 500); 19 Apr 2007 06:39:43 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 77257 invoked by uid 500); 19 Apr 2007 06:39:43 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 77183 invoked by uid 99); 19 Apr 2007 06:39:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2007 23:39:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2007 23:39:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9C356714080 for ; Wed, 18 Apr 2007 23:39:15 -0700 (PDT) Message-ID: <4188154.1176964755637.JavaMail.jira@brutus> Date: Wed, 18 Apr 2007 23:39:15 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-851) Handling of binary properties (streams) in QValue interface In-Reply-To: <32155750.1176903796591.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489942 ] Jukka Zitting commented on JCR-851: ----------------------------------- > > The most usual (only?) reason for a client to create QValues is when the client wants to > > store content in the repository > > is probably not totally correct, isn't it? i was told recently that almost everything was reading :) Note the part "for a client". The SPI implementation obviously creates QValues whenever content is read, but I don't believe that is a problem in this case. > Handling of binary properties (streams) in QValue interface > ----------------------------------------------------------- > > Key: JCR-851 > URL: https://issues.apache.org/jira/browse/JCR-851 > Project: Jackrabbit > Issue Type: Improvement > Components: SPI > Reporter: Julian Reschke > > The current SPI requires QValue to return new streams upon each call to getStream(). As far as I can tell, this essentially requires a QValue implementation to preserve the whole content of a stream, be it in memory or on disk. > In particular (and unless I'm missing something), when importing large content into a repository, this causes the whole data stream to be written twice. We really should try to avoid that. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.