From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Rudi Starcevic <rudi(at)oasis(dot)net(dot)au>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Analyze + Index |
Date: | 2002-11-29 10:32:26 |
Message-ID: | 200211291032.26769.dev@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2002-11-29 10:35:12 | Re: master-detail relationship and count |
Previous Message | Gary Stainburn | 2002-11-29 10:06:06 | master-detail relationship and count |