Re: Trim performance on 9.5

Поиск
Список
Период
Сортировка
От William Ivanski
Тема Re: Trim performance on 9.5
Дата
Msg-id CACaWZ9Qi6343oipj9qos73_tCuza1u5ZWdHJ75TOd8ZoxmUV-g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Trim performance on 9.5  (vinny <vinny@xs4all.nl>)
Ответы Re: Trim performance on 9.5
Список pgsql-general
I just ran EXPLAIN ANALYZE, please see images attached. Field doesn't have a index.

Em sex, 18 de nov de 2016 às 12:16, vinny <vinny@xs4all.nl> escreveu:
On 2016-11-18 15:06, William Ivanski wrote:
> Hi,
>
> I recently did major improvements on perfomance on our routines by
> simply removing the call for trim functions on specific bottlenecks.
> Please see images attached for a simple example.
>
> I'm using PostgreSQL version 9.5.5-1.pgdg80+1 on Debian 8.6. Someone
> knows if it's a bug on trim function? Thanks in advance.
>
> --
>
> William Ivanski

Did you run EXPLAIN on these queries?

I'm guessing that you have an index on the field, but not on
TRIM(field),
which would mean that the database is forced to seqscan to fetch every
row value, trim it and then compare it.
--

William Ivanski

Вложения

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

Предыдущее
От: Vick Khera
Дата:
Сообщение: Re: pgbench and scaling
Следующее
От: Paul Jungwirth
Дата:
Сообщение: Avoiding double-counting in aggregates with more than one join?