Re: Index ot being used

Поиск
Список
Период
Сортировка
От Madison Kelly
Тема Re: Index ot being used
Дата
Msg-id 42B06660.1060504@alteeve.com
обсуждение исходный текст
Ответ на Re: Index ot being used  (Karim Nassar <karim.nassar@acm.org>)
Список pgsql-performance
Karim Nassar wrote:
> Your goal is admirable. However, many people tweak their postgresql.conf
> files, and your program can't know whether or not this has happened. It
> might be a good idea to have a var $do_db_optimization, which defaults
> to on. Then, if your users have trouble or are advanced admins they can
> turn it off. My personal opinion is that there are too many
> architectures and configurations for you to accurately optimize inside
> your program, and this gives you and your users an easy out.
>
> if ($do_db_optimization == 1) {
>   $DB->do("SET ENABLE_SEQSCAN TO OFF") || die...
> } else {
>   # do nothing -- postgresql will figure it out
> }

That is a wonderful idea and I already have the foundation in place to
easily implement this. Thanks!!

Madison

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Madison Kelly (Digimer)
TLE-BU, The Linux Experience; Back Up
http://tle-bu.thelinuxexperience.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

Предыдущее
От: Karim Nassar
Дата:
Сообщение: Re: Index ot being used
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Needed: Simplified guide to optimal memory configuration