From: Jason Coene <jcoene@gotfrag.com>
To: 'Qing Zhao' <qzhao@supplyfx.com>
Cc: 'Postgresql Performance' <pgsql-performance@postgresql.org>
Subject: Re: indexes make other queries slow!
Date: Thu, 16 Sep 2004 17:36:46 -0400
Message-ID: <200409162136.i8GLagv2015192@ms-smtp-03.nyroc.rr.com> (raw)
In-Reply-To: <3C40F514-0826-11D9-B278-000A95AB8896@supplyfx.com>
> My guess is that all the queries that involves the columns that are
> being indexed need to
> be rewritten to use the newly created indexes to avoid the performance
> issues. The reason
> is that REINDEX does not help either. Does it make sense?
>
Qing,
Generally, adding new indexes blindly will hurt performance, not help it.
More indexes mean more work during INSERT/UPDATE. That could easily be
hampering your performance if you have a high INSERT/UPDATE volume.
Run your queries through EXPLAIN ANALYZE to make sure they're using the
right indexes. Take a look at the pg_stat_user_indexes table to see what
indexes are simply not being used.
Jason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jcoene@gotfrag.com, qzhao@supplyfx.com
Subject: Re: indexes make other queries slow!
In-Reply-To: <200409162136.i8GLagv2015192@ms-smtp-03.nyroc.rr.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox