Re: Many to many join seems slow?

Поиск
Список
Период
Сортировка
Искать
От
Daniel Cristian Cruz
Тема
Re: Many to many join seems slow?
Дата
в 13:00:36
Msg-id
48d0cacb0705150900o29f11b42t5dc5634be50e496a@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Many to many join seems slow? Drew Wilson <drewmwilson@gmail.com>
Re: Many to many join seems slow? Alvaro Herrera <alvherre@commandprompt.com>
Re: Many to many join seems slow? Drew Wilson <drewmwilson@gmail.com>
Re: Many to many join seems slow? Heikki Linnakangas <heikki@enterprisedb.com>
Re: Many to many join seems slow? Drew Wilson <drewmwilson@gmail.com>
Re: Many to many join seems slow? "Daniel Cristian Cruz" <danielcristian@gmail.com>
Re: Many to many join seems slow? Drew Wilson <drewmwilson@gmail.com>
2007/5/15, Drew Wilson :
> =# explain SELECT s.source_id, s.value AS sourceValue, t.value AS
> translationValue
>        FROM
>            source s,
>            translation_pair tp,
>            translation t,
>            language l
>        WHERE
>            s.source_id = tp.source_id
>            AND tp.translation_id = t.translation_id
>            AND t.language_id = l.language_id
>            AND l.name = 'French' ;
>
>                                                           QUERY PLAN
> ------------------------------------------------------------------------
> -----------------------------------------------------
> Merge Join  (cost=524224.49..732216.29 rows=92447 width=97)

This way you get all word matches for the French language. Shouldn't
it be all matches for a specific word (s.value = 'word' in WHERE)?

-- 
Daniel Cristian Cruz
В списке pgsql-performance по дате отправления
От: Alexander Staubo
Дата:
От: Guillaume Cottenceau
Дата:
FAQ