Re: indexing array columns

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: indexing array columns
Дата
Msg-id 20070414161913.GB3608@svana.org
обсуждение исходный текст
Ответ на indexing array columns  (Rajarshi Guha <rguha@indiana.edu>)
Ответы Re: indexing array columns
Список pgsql-general
On Fri, Apr 13, 2007 at 06:09:50PM -0400, Rajarshi Guha wrote:
> Hi, I have a table of about 10M rows. It has two columns A and B, where
> A is a text field and B is a real[12] field.
>
> Now when this table is queried it is usually of the form:
>
> select A from theTable where sim(B, C) > 0.8

<snip>

> What type of indexing, available in Postgres could be used for my
> problem? Would it require me to implement my own indexing scheme?

PostgreSQL provides very flexible indexing mechanisms. By using GiST
you should be able to index the way you want. In contrib there a module
"cube" which does similar to what you want to 3D, extending it to 12D
shouldn't be too hard...

Have a nice day,

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: error creating/setting sequence, pg_dump / pg_restore 8.1.5
Следующее
От: "Anton Melser"
Дата:
Сообщение: Re: recommendations for reducing mem usage on local dev machine