Re: indexes make other queries slow!

Поиск
Список
Период
Сортировка
От Jason Coene
Тема Re: indexes make other queries slow!
Дата
Msg-id 200409162136.i8GLagv2015192@ms-smtp-03.nyroc.rr.com
обсуждение исходный текст
Ответ на indexes make other queries slow!  (Qing Zhao <qzhao@supplyfx.com>)
Список pgsql-performance
> 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


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: indexes make other queries slow!
Следующее
От: "J. Andrew Rogers"
Дата:
Сообщение: Re: Partitioning