| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера