Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9E7B06502E5 for ; Sat, 16 Aug 2008 23:19:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 52639-06 for ; Sat, 16 Aug 2008 23:19:24 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by postgresql.org (Postfix) with ESMTP id 73EC5650244 for ; Sat, 16 Aug 2008 23:19:30 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id c49so1618093wra.19 for ; Sat, 16 Aug 2008 19:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=UpSZnBDV8pPNzD0/un5HL6LQqvUeLB5d962ZJ/PrKvs=; b=lz8pQkRabXkte9qH/obGnrpws2DRU25/28Cif1/zFqUDXuFRA9tbwMd1OAqG2z/S99 ukIx7arRkjS9ui8AT+GPlZPGNDvvr5jTkVV8rOOo1AjXB2xcU/Q774tMwMDl5JJN6+NZ Wp3aH0kb6NypduXbsXuLo9/K9PbAXLAOFCbXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=G5/S/5gmx2koqiKdxUYrfW8CzPgMa2r2IvWJhkLHFkj+CLYio3J/UA3M+Cd6RRrVvG EEDnF/itMTq0aeR369I7aWH0VTCL9U2EHukrVA6wmbj+iTkUcu/gEw8ouQsFRVUG6gg+ QYd82tmBnFoYtVOFe40avMPUutblfMZ1EYhFE= Received: by 10.90.115.17 with SMTP id n17mr6037068agc.107.1218939568441; Sat, 16 Aug 2008 19:19:28 -0700 (PDT) Received: by 10.90.93.7 with HTTP; Sat, 16 Aug 2008 19:19:28 -0700 (PDT) Message-ID: <65937bea0808161919t4b0f19a0md90eae487b86429@mail.gmail.com> Date: Sun, 17 Aug 2008 07:49:28 +0530 From: "Gurjeet Singh" To: "=?ISO-8859-1?Q?Rodrigo_E._De_Le=F3n_Plicet?=" Subject: Re: Optimizing a VIEW Cc: "Madison Kelly" , pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17195_2044115.1218939568440" References: <48A5CCA4.2040206@alteeve.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200808/183 X-Sequence-Number: 31064 ------=_Part_17195_2044115.1218939568440 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, Aug 17, 2008 at 7:06 AM, Rodrigo E. De Le=F3n Plicet < rdeleonp@gmail.com> wrote: > On Fri, Aug 15, 2008 at 1:36 PM, Madison Kelly wrote: > > The 'cust_id' references the customer that the given data belongs to. > The > > reason for this "data bucket" (does this structure have a proper name?) > is > > that the data I need to store on a give customer is quite variable and > > outside of my control. As it is, there is about 400 different > variable/value > > pairs I need to store per customer. > > For you very specific case, I recommend you check out contrib/hstore: > http://www.postgresql.org/docs/current/static/hstore.html > > Awesome!!!! Any comments on the performance of hstore? Best regards, --=20 gurjeet[.singh]@EnterpriseDB.com singh.gurjeet@{ gmail | hotmail | indiatimes | yahoo }.com EnterpriseDB http://www.enterprisedb.com Mail sent from my BlackLaptop device ------=_Part_17195_2044115.1218939568440 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
On Sun, Aug 17, 2008 at 7:06 AM, Rodrigo E. De Le=F3n Plic= et <rdeleonp@gma= il.com> wrote:
On Fri, Aug 15, 2008 at 1:36 PM, Madison Kelly <linux@alteeve.com> wrote:
>  The 'cust_id' references the customer that the given dat= a belongs to. The
> reason for this "data bucket" (does this structure have a pr= oper name?) is
> that the data I need to store on a give customer is quite variable and=
> outside of my control. As it is, there is about 400 different variable= /value
> pairs I need to store per customer.

For you very specific case, I recommend you check out contrib/hstore:=
http://www.postgresql.org/docs/current/static/hstore.html<= br>

Awesome!!!! Any comments on the performance of hstore?

Best regards,
--
gurjeet[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | indiatimes | yahoo }.com

Enterpris= eDB http://www.enterprisedb.com=

Mail sent from my BlackLaptop device
------=_Part_17195_2044115.1218939568440--