Re: [GENERAL] Tuning queries on large database

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: [GENERAL] Tuning queries on large database
Дата
Msg-id 411203B7.8050706@bigfoot.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Tuning queries on large database  (Valerie Schneider DSI/DEV <Valerie.Schneider@meteo.fr>)
Список pgsql-performance
Valerie Schneider DSI/DEV wrote:

 > Hi,
 > I 've decreased the sort_mem to 5000 instead of 50000.
 > I recreated ma table using integer and real types instead of
 > numeric : the result is very improved for the disk space :
 >
 >  schema | relfilenode |      table       |   index    |  reltuples  |   size
 > --------+-------------+------------------+------------+-------------+----------
 >  public |   253442696 | data             |            | 1.25113e+08 | 29760016
 >  public |   378639579 | data             | i_data_dat | 1.25113e+08 |  2744400
 >  public |   378555698 | data             | pk_data    | 1.25113e+08 |  3295584
 >
 > so it takes about 28 Gb instead of 68 Gb !
 >
 > For my different queries, it's better but less performant than oracle :
 >
 >     oracle    PG yesterday(numeric)    PG today(integer/real)
 > Q1    <1s       <1s              <1s
 > Q2     3s        8s               4s
 > Q3     8s     1m20s              27s
 > Q4    28s    17m20s            6m47s


Are you using the same disk for oracle and PG ?

Could you post your actual postgresql.conf ?
Try also to mount your partition with the option: noatime
and try again.


Regards
Gaetano Mendola




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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: Tuning queries on large database
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: Temporary tables