Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B22DEDA39 for ; Thu, 15 Nov 2012 15:30:59 +0000 (UTC) Received: (qmail 796 invoked by uid 500); 15 Nov 2012 15:30:59 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 684 invoked by uid 500); 15 Nov 2012 15:30:58 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 648 invoked by uid 99); 15 Nov 2012 15:30:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 15:30:57 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FRT_ADOBE2,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [176.9.111.84] (HELO ssl.backendmedia.com) (176.9.111.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 15:30:50 +0000 Received: from localhost (unknown [127.0.0.1]) by ssl.backendmedia.com (Postfix) with ESMTP id 5FB295EFE37E for ; Thu, 15 Nov 2012 15:30:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from ssl.backendmedia.com ([127.0.0.1]) by localhost (hq2.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ir6BMH3BHqpc for ; Thu, 15 Nov 2012 16:30:30 +0100 (CET) Received: from [10.0.0.202] (cust.static.109-164-240-33.swisscomdata.ch [109.164.240.33]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by ssl.backendmedia.com (Postfix) with ESMTPSA id ABDFA5EFE37D for ; Thu, 15 Nov 2012 16:30:30 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Support for long multivalued properties From: Lukas Kahwe Smith In-Reply-To: <0E30E9D2-C2AF-46E2-8799-0954A23ADACE@adobe.com> Date: Thu, 15 Nov 2012 16:30:28 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <673C0AAF-D902-4565-A2D0-1BC98D4269F5@pooteeweet.org> References: <8035DC13-DA1D-4A9F-961B-C3BD7A0B3614@pooteeweet.org> <0E30E9D2-C2AF-46E2-8799-0954A23ADACE@adobe.com> To: oak-dev@jackrabbit.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org On Nov 15, 2012, at 15:50 , Felix Meschberger = wrote: > Hi, >=20 > Am 15.11.2012 um 14:06 schrieb Lukas Kahwe Smith: >=20 >>=20 >> On Nov 15, 2012, at 14:02 , Thomas Mueller wrote: >>=20 >>> Hi, >>>=20 >>>> before adding this i would rather want to see support for hash = maps. >>>=20 >>> Sounds interesting.. could you give more details please? >>=20 >>=20 >> well right now you can only store "ordered lists". >> especially in PHP its common to use associative arrays >>=20 >> $var =3D array( >> 'foo' =3D> 'bar', >> 'ding' =3D> 'dong', >> ) >=20 > Hm, this looks more like node "var" with properties "foo" set to "bar" = and "ding" set to "dong" to me. not really .. the same could be said about any multi valued property = otherwise :) i guess hash maps are not a common pattern in Java, but they are quite = common in scripting languages. also for scripting languages it generally makes little sense to "blow = up" a simple structure into lots of subnodes for performance reasons. at any rate in our data mapper we currently support this splitting hash = maps into 2 multi valued properties and we are making quite a lot of use = of this. f.e. we use this to store a list of named options. TYPO3, who created a JCR inspired content repository, also named the = lack of hash maps as a reason why they in the ended diverged. it was my understanding that Oak tries to become more viable for remote = access from other languages, in that case it would make sense to look = into this. at any rate .. i didnt mean to high jack this thread. so if = there is interest to discuss this further it would be best to open a new = thread. regards, Lukas Kahwe Smith mls@pooteeweet.org