Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 18299 invoked from network); 21 Mar 2009 00:26:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2009 00:26:20 -0000 Received: (qmail 5770 invoked by uid 500); 21 Mar 2009 00:26:14 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 5744 invoked by uid 500); 21 Mar 2009 00:26:14 -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 5733 invoked by uid 99); 21 Mar 2009 00:26:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 17:26:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.182 as permitted sender) Received: from [207.126.148.182] (HELO eu3sys201aog002.obsmtp.com) (207.126.148.182) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 21 Mar 2009 00:26:06 +0000 Received: from source ([209.85.219.158]) by eu3sys201aob002.postini.com ([207.126.154.11]) with SMTP ID DSNKScQ0B9KDeFZ1qwbCiMFOfrKfx1KrcxK0@postini.com; Sat, 21 Mar 2009 00:25:45 UTC Received: by ewy2 with SMTP id 2so924854ewy.41 for ; Fri, 20 Mar 2009 17:25:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.210.126.18 with SMTP id y18mr3250364ebc.69.1237595142728; Fri, 20 Mar 2009 17:25:42 -0700 (PDT) In-Reply-To: <22607975.post@talk.nabble.com> References: <22587989.post@talk.nabble.com> <22607975.post@talk.nabble.com> Date: Sat, 21 Mar 2009 01:25:42 +0100 Message-ID: Subject: Re: Datastore(MySql) From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Mar 19, 2009 at 8:44 PM, Nichi wrote: > Say, I have two tables Experiment and ExperimentData that I want to store > using Jackrabbit=92s content repository. =A0Experiment has around a thous= and > rows and ExperimentData tens of millions of rows. There is a one-to-many > relation between Experiment and ExperimentData. > My understanding is that each of these tables will be the node types and > rows in these tables would be the nodes, columns being their properties. = The > reference property would be used to implement the one-to-many relation. > Is my interpretation correct? Could there be a problem because of the lar= ge > size of the database ? A "generic" mapping like tables =3D node types and rows =3D nodes would imply you get flat hierarchies with millions of child nodes of one "experiments" node. This is inefficient in Jackrabbit (we estimate the max. recommended number of child nodes per node at 10K). And completely misses the advantages of JCR modeling. You should rather find a good hierarchy for your data. Almost always working is the date of the item, creating subnodes like "2009/03/20/mydata1". See also http://wiki.apache.org/jackrabbit/DavidsModel Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com