Re: ORDER BY costs
| От | Tom Lane |
|---|---|
| Тема | Re: ORDER BY costs |
| Дата | |
| Msg-id | 15455.1135193975@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | ORDER BY costs (Carlos Benkendorf <carlosbenkendorf@yahoo.com.br>) |
| Ответы |
Re: ORDER BY costs
Re: ORDER BY costs |
| Список | pgsql-performance |
Carlos Benkendorf <carlosbenkendorf@yahoo.com.br> writes:
> Table "iparq.arript"
> Column | Type | Modifiers
> -------------------+-----------------------+-----------
> anocalc | numeric(4,0) | not null
> cadastro | numeric(8,0) | not null
> codvencto | numeric(2,0) | not null
> parcela | numeric(2,0) | not null
> inscimob | character varying(18) | not null
> codvencto2 | numeric(2,0) | not null
> parcela2 | numeric(2,0) | not null
> codpropr | numeric(10,0) | not null
> dtaven | numeric(8,0) | not null
> anocalc2 | numeric(4,0) |
I suspect you'd find a significant performance improvement from changing
the NUMERIC columns to int or bigint as needed. Numeric comparisons are
pretty slow.
regards, tom lane
В списке pgsql-performance по дате отправления: