Re: Interesting speed anomaly

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Interesting speed anomaly
Дата
Msg-id 19749.1134575285@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Interesting speed anomaly  (Zoltan Boszormenyi <zboszor@dunaweb.hu>)
Ответы Re: Interesting speed anomaly  (Zoltan Boszormenyi <zboszor@dunaweb.hu>)
Список pgsql-hackers
Zoltan Boszormenyi <zboszor@dunaweb.hu> writes:
> $ time echo "select * from v_invoice_browse where code||inv_no = 'CARO200000020'" | dbaccess db

> Is there a way to speed this operation up?

Make an expression index on "code||inv_no", if you think this case is
important enough to be worth maintaining an extra index for.

(This is not on-topic for -hackers, IMHO.  Try pgsql-perform.)
        regards, tom lane


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

Предыдущее
От: Zoltan Boszormenyi
Дата:
Сообщение: Interesting speed anomaly
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Immodest Proposal: pg_catalog.pg_ddl