Re: Array performance

Поиск
Список
Период
Сортировка
От Ruben Rubio Rey
Тема Re: Array performance
Дата
Msg-id 44278E27.5090909@rentalia.com
обсуждение исходный текст
Ответ на Re: Array performance  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Tom Lane wrote:

>Ruben Rubio Rey <ruben@rentalia.com> writes:
>
>
>>SELECT (array[20]+array[21]+ ... +array[50]+array[51]) as total
>>FROM table
>>WHERE
>>(array[20]+array[21]+ ... +array[50]+array[51])<5000
>>AND array[20]<>0
>>AND array[21]<>0
>> ...
>>AND array[50]<>0
>>AND array[51])<>0
>>
>Any ideas to make this query faster?
>
>
>
>What's the array datatype?  Integer or float would probably go a lot
>faster than NUMERIC, if that's what you're using now.
>
>
Already its integer[]

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

Предыдущее
От: Guido Neitzer
Дата:
Сообщение: Re: Query plan from hell
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: [GENERAL] experiences needed - how does Itanium2/1.5GHz(4MB) compare to AMD and Intel CPUs as far as Postgresql is concerned