Re: Analyze + Index

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Analyze + Index
Дата
Msg-id 200211291032.26769.dev@archonet.com
обсуждение исходный текст
Ответ на Re: Analyze + Index  (Rudi Starcevic <rudi@oasis.net.au>)
Список pgsql-sql
On Friday 29 Nov 2002 4:45 am, Rudi Starcevic wrote:
> Hi,
>
> I think I've found what I need to know.
>  From techdocs.postgresql.org
>
>  >> Every you run an INSERT, UPDATE, or DELETE on an indexed table,
>
> PostgreSQL must update all of the table's indexes to reflect the new
> data (unlike some
>
>  >> RDBMSs, PostgreSQL updates indexes immediately so they never get out
> of synch with the data).

Yep - the ANALYSE updates the statistics the planner uses. So - you should
analyse when a noticable portion of your data has changed. If you had 3000
users and batch inserted 1000 users you'd probably want to ANALYSE.

--  Richard Huxton


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

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: master-detail relationship and count
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: master-detail relationship and count