| From: | Christoph Haller <ch(at)rodos(dot)fzk(dot)de> | 
|---|---|
| To: | hhiturre(at)yahoo(dot)com(dot)ar | 
| Cc: | pgsql-sql(at)postgresql(dot)org | 
| Subject: | Re: Performance Problems | 
| Date: | 2002-12-12 14:29:45 | 
| Message-ID: | 3DF89D59.DAD4BAC3@rodos.fzk.de | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-sql | 
>
>    I have performance problems with a huge database
> (there a 2 tables with 40 millions of records) and
> many users doing updates and queries on it. I 've
> perform severals VACUMM on the database with poor
> results.
>    Each table have an unique index and I added other
> indexes to improve the performance. But when there are
> inserts (not too many) the performance fall.
>    What can I do to improve the performace? I hear any
> opinion.
>
Bear in mind, every index has to be updated when records
are inserted. An unique one makes it even worse, because
a search for duplicates must be performed.
You may give the idea some thought, if this index really
has to be unique. I sometimes use a 'timestamp-insert'
column to allow duplicates and retrieve unique entries by
a SELECT DISTINCT ON construct.
Regards, Christoph
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Atul | 2002-12-12 14:43:22 | Re: Stored Procedure Problem | 
| Previous Message | Philip Warner | 2002-12-12 14:09:41 | Re: Performance Problems |