Re: Select with qualified join condition / Batch inserts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Select with qualified join condition / Batch inserts
Дата
Msg-id 10423.1097860081@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Select with qualified join condition / Batch inserts  (Bernd <bernd_pg@genedata.com>)
Список pgsql-performance
Bernd <bernd_pg@genedata.com> writes:
> 1/ The following query takes about 5 sec. with postrgres whereas on Oracle it
> executes in about 30 ms (although both tables only contain 200 k records in
> the postgres version).

What does EXPLAIN ANALYZE have to say about it?  Have you ANALYZEd the
tables involved in the query?

You would in any case be very well advised to change the "numeric"
columns to integer, bigint, or smallint when appropriate.  There is
a substantial performance advantage to using the simple integral
datatypes instead of the general numeric type.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Does PostgreSQL run with Oracle?
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: Does PostgreSQL run with Oracle?