Re: Join Bad Performance on different data types

Поиск
Список
Период
Сортировка
От Sameer Kumar
Тема Re: Join Bad Performance on different data types
Дата
Msg-id CADp-Sm4kqYg-hrZPLgTTYOzLes83i6NnZH3TGvW=nmAcLbQs2A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Join Bad Performance on different data types  (Adarsh Sharma <eddy.adarsh@gmail.com>)
Список pgsql-general

On Tue, Mar 4, 2014 at 4:19 PM, Adarsh Sharma <eddy.adarsh@gmail.com> wrote:
Is dere any way i can rewrite the query so that i need not to set seqscan-off,  because i dont want to embed one more line in application code and also dont want to change global setting in postgresql.conf to disable seqscan.

You can use a specific user for this query and set parameter's value at user level.

But if you don't have any way of doing that then you pretty much have to "embed one more line in application code" [though I have never understood why application teams do not want to do that]. It should be fine, unless you are developing a product which can be used with someother RDBMS and hence you don't want to introduce a PostgreSQL specific line in code.



Best Regards,

Sameer Kumar | Database Consultant

ASHNIK PTE. LTD.

101 Cecil Street, #11-11 Tong Eng Building, Singapore 069533

M: +65 8110 0350  T: +65 6438 3504 | www.ashnik.com

icons

 

Email patch

 

This email may contain confidential, privileged or copyright material and is solely for the use of the intended recipient(s).

Вложения

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

Предыдущее
От: Adarsh Sharma
Дата:
Сообщение: Re: Join Bad Performance on different data types
Следующее
От: leo
Дата:
Сообщение: Re: How to recovery failed master after failover