Re: dum query plan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: dum query plan
Дата
Msg-id 2843.1050549331@sss.pgh.pa.us
обсуждение исходный текст
Ответ на dum query plan  (Jonathan Moore <moore@discern.com>)
Список pgsql-performance
Jonathan Moore <moore@discern.com> writes:
> I am wondering why it uses the O(n^2) nested loop when there is a O(N)
> methoud using btree indexes for a merg join.

With an inequality for the WHERE condition?  I don't think so.  The
expected output is of size O(N^2), so how could the algorithm take
less than O(N^2) steps?

> dblex=> explain select A.left_entry from entry_pairs A, entry_pairs B
> where A.right_entry != B.left_entry;

            regards, tom lane


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

Предыдущее
От: "Nikolaus Dilger"
Дата:
Сообщение: Re: the RAID question, again
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: the RAID question, again