From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Surabhi Ahuja <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: analyze at startup? |
Date: | 2005-05-19 10:37:10 |
Message-ID: | 428C6C56.4090102@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Surabhi Ahuja wrote:
> Analyze command helps increase performance.
More exactly, it updates statistics so the planner knows that (e.g.) you
have lots of different values in the invoice_date column.
> Suppose i have n connections to the database..and each connection i
> query. So does this mean that i need to do an analyse over each of
> those connections.
No. You only need to analyse if your data changes greatly.
> Cant analyze be done one time... and also please tell if there is any
> way in postgresql to tell it to perform analyze periodically after
> some time gap.
Haven't used the autovacuum add-on myself, but probably worth looking at it.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Sean Davis | 2005-05-19 10:55:57 | Re: analyze at startup? |
Previous Message | Surabhi Ahuja | 2005-05-19 10:20:07 | analyze at startup? |