Re: cube operations

From: ABHANG RANE <arane(at)indiana(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: cube operations
Date: 2007-05-17 18:05:59
Message-ID: 20070517140559.n89xvz0944csc8w4@webmail.iu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
But now having 12 columns and multicolumn index, wont this slow down
the search process. I mean in general retrieving 12 columns using a
multicolumn index is slower or faster compared to an index on a 12 size
array?

Thanks
Abhang
Quoting "John D. Burger" <john(at)mitre(dot)org>:

> ABHANG RANE wrote:
>
>> I have a array column which has 12 real values in it. Basically
>> these values represent co-ordinates in 12 dimensions for a
>> substance. My main need is to find substances similar to a
>> particular compound. Now I can do by calculating differences with
>> each array in the whole table. But the table has millions of rows.
>> So I need some kinda higher dimensional index.
>
> Is there any particular reason you're using an array? If every row
> has all twelve values, I'd just make them columns. Then I could use
> a multi-column index.
>
>> I have read about the cube operation in postgre, can it be extended
>> to 12 dimensions or something like that.
>
> I have no experience with CUBE, but I think it's just a kind of
> summarization aggregate.
>
> It sounds like you want the Nearest Neighbor(s) of your "particular
> compound". You might to read about that:
>
> http://en.wikipedia.org/wiki/Nearest_neighbor_search
>
> - John Burger
> G63
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2007-05-17 18:23:19 Re: Fault Tolerant Postgresql (two machines, two postmasters, one disk array)
Previous Message John D. Burger 2007-05-17 16:50:56 Re: Fault Tolerant Postgresql (two machines, two postmasters, one disk array)