Re: Tuning queries on large database

Поиск
Список
Период
Сортировка
Искать
От
Pierre-Frédéric Caillaud
Тема
Re: Tuning queries on large database
Дата
Msg-id
opsb7sy618cq72hf@musicbox
Ответ на
Список
Дерево обсуждения
Re: Tuning queries on large database Valerie Schneider DSI/DEV <Valerie.Schneider@meteo.fr>
Re: Tuning queries on large database Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>

>> not so bad for oracle. What about for PG ? How data is stored

	I agree with the datatype issue. Smallint, bigint, integer... add a  
constraint...

	Also the way order of the records in the database is very important. As  
you seem to have a very large static population in your table, you should  
insert it, ordered by your favourite selection index (looks like it's  
poste).

	Also, you have a lot of static data which pollutes your table. Why not  
create two tables, one for the current year, and one for all the past  
years. Use a view to present a merged view.
В списке pgsql-performance по дате отправления
От: Michael Adler
Дата:
Сообщение: Re: Performance Bottleneck
От: Pierre-Frédéric Caillaud
Дата:
FAQ