Re: slow plan on join when adding where clause

Поиск
Список
Период
Сортировка
От Mladen Gogala
Тема Re: slow plan on join when adding where clause
Дата
Msg-id 4BB4E39D.8090808@vmsinfo.com
обсуждение исходный текст
Ответ на Re: slow plan on join when adding where clause  (Jasen Betts <jasen@xnet.co.nz>)
Ответы Re: slow plan on join when adding where clause  (syan <kittylitter@people.net.au>)
Список pgsql-novice
Jasen, he does have the index, that precisely is a problem. According to
his statement, full table scan is faster than an index search.

Jasen Betts wrote:
> On 2010-03-29, L. Loewe <lloewe@hotmail.com> wrote:
>
>> Hi all
>>
>
>
>> SELECT  * FROM  events, main WHERE  main.ti > events.start and
>>                                      main.ti < events.stop and sensor_id=1;
>>
>
> create index main_ti_sid on main(sensor_id,ti);
>
>
>

--

Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
http://www.vmsinfo.com
The Leader in Integrated Media Intelligence Solutions




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

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: slow plan on join when adding where clause
Следующее
От: Scott Geller
Дата:
Сообщение: plpgsql function question