Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 73246 invoked from network); 11 Apr 2007 10:37:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2007 10:37:02 -0000 Received: (qmail 21494 invoked by uid 500); 11 Apr 2007 10:37:08 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 21231 invoked by uid 500); 11 Apr 2007 10:37:07 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 21222 invoked by uid 99); 11 Apr 2007 10:37:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 03:37:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 03:37:00 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HbaBr-0005qp-AZ for users@jackrabbit.apache.org; Wed, 11 Apr 2007 03:36:39 -0700 Message-ID: <9936830.post@talk.nabble.com> Date: Wed, 11 Apr 2007 03:36:39 -0700 (PDT) From: Alan R To: users@jackrabbit.apache.org Subject: Re: importing XML file performance In-Reply-To: <6972344.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: arof+nabble@messagio.com References: <6952631.post@talk.nabble.com> <6969132.post@talk.nabble.com> <510143ac0610240203h7d50af18v928b58f079d99548@mail.gmail.com> <6972344.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi. I'm using Jackrabbit 1.2.2 (JNDIPersistenceManager on MySQL, external blobs), and I'm finding the importXML() call very, very slow. I've tried calling it both on the session and on the workspace and don't notice much difference. Where the export takes seconds, the import takes minutes. My average file size will be just under 20 MB (consisting of on the order of 20 blobs and 60 nodes per file), and there could be tens or even hundreds of these to import in the case of a system restoration from backup. I can afford 20 minutes to restore the system, but not 20 hours. Currently I've tried it with a single 17MB file, and workspace.importXML() takes 8 and a half minutes. It was the same for session.importXML(). Are there any performance enhancements underway? This seems like a really important feature to speed up, because any time I need to migrate data, recover from a disk failure or change fundamental jackrabbit configuration, I will need to import exported data, including blobs. Is there something flawed in my backup/restoration strategy? Thanks. -Alan quipere wrote: > > Saving it on the workspace would take about half of the time, if I am > right. But I will than be stuck with the risk of making my own rollback > functions. Because I am persisting more actions than only the xmlimport on > one session.save(). > Is the node.remove also loading all the childnodes in memory? Because when > I remove the mainNode of the imported xml. It consumes an even amount of > memory as the import function? > > > Jukka Zitting-3 wrote: >> >> On 10/24/06, quipere wrote: >>> Does everybody have the same performance results while importing this >>> XML? >> >> Yes. The imported content is stored in the transient state of the >> session, which is kept fully in memory. Additionally, the Jackrabbit >> ItemState objects used to represent nodes and properties in memory are >> heavier than the DOM equivalents, so large XML files will use lots of >> memory when imported. >> > -- View this message in context: http://www.nabble.com/importing-XML-file-performance-tf2493911.html#a9936830 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.