Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 79919 invoked from network); 12 Jan 2006 10:38:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jan 2006 10:38:00 -0000 Received: (qmail 88033 invoked by uid 500); 12 Jan 2006 10:37:59 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 88022 invoked by uid 99); 12 Jan 2006 10:37:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2006 02:37:58 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [193.252.22.26] (HELO smtp5.wanadoo.fr) (193.252.22.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2006 02:37:57 -0800 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0503.wanadoo.fr (SMTP Server) with ESMTP id C804F1C001B7 for ; Thu, 12 Jan 2006 11:37:34 +0100 (CET) Received: from [192.168.1.10] (LSt-Amand-152-32-6-178.w82-127.abo.wanadoo.fr [82.127.21.178]) by mwinf0503.wanadoo.fr (SMTP Server) with ESMTP id 7937C1C001AC; Thu, 12 Jan 2006 11:37:34 +0100 (CET) X-ME-UUID: 20060112103734496.7937C1C001AC@mwinf0503.wanadoo.fr Subject: Re: Newbies question From: =?ISO-8859-1?Q?J=E9r=F4me?= BENOIS To: jackrabbit-dev@incubator.apache.org Cc: Philippe Ruelle In-Reply-To: <510143ac0601060917r739751b2w23a925235457549e@mail.gmail.com> References: <1136563621.5442.146.camel@localhost.localdomain> <510143ac0601060917r739751b2w23a925235457549e@mail.gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-QNefBop0xafn+QyTNo8W" Date: Thu, 12 Jan 2006 11:37:33 +0100 Message-Id: <1137062253.4413.73.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=-QNefBop0xafn+QyTNo8W Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Thanks for your response. I carried out some tests with my 180000 nodes, when i save per block of 100 nodes the execution time is 8 hours and my store is very big : 1.3Go When i launch a simple query, my CPU, RAM is full and execution is very very long ... Could you help me please ? My repository.xml here :=20 = =20 =20 Best Regards, J=C3=A9r=C3=B4me. Le vendredi 06 janvier 2006 =C3=A0 19:17 +0200, Jukka Zitting a =C3=A9crit = : > Hi, >=20 > On 1/6/06, J=C3=A9r=C3=B4me BENOIS wrote: > > I want use jackrabbit in order to create 180000 content nodes. But, how > > to use correctly the session ? Call session.save() for each nodes or > > prefer call session.save() per bloc of 1000 nodes ? >=20 > It depends on your performance and memory use requirements. Each > save() will cost you some time, but the more changes you queue up > before calling save() the more memory your process will use to hold > the pending changes. Calling Session.save() only per a block of > changes is probably better for such bulk loads. >=20 > You may also want to take a look at the Workspace.importXML() and > Workspace.getImportContentHandler() for an efficient alternative to > bulk loading large amounts of data. >=20 > BR, >=20 > Jukka Zitting >=20 > -- > Yukatan - http://yukatan.fi/ - info@yukatan.fi > Software craftmanship, JCR consulting, and Java development --=-QNefBop0xafn+QyTNo8W Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDxjFtCDKlmlhpwnERAhCMAJ4i6Xy1zoFklswN/ms9smoLOSjAvwCeMt3t 0p5GdOSGmegyygd5OcpERGM= =8Uca -----END PGP SIGNATURE----- --=-QNefBop0xafn+QyTNo8W--