Re: EXPLAIN ANALYZE output weird for Top-N Sort
От
Jeremy Harris
Тема
Re: EXPLAIN ANALYZE output weird for Top-N Sort
Дата
Msg-id
54666595.60901@wizmail.org
Ответ на
Список
Дерево обсуждения
EXPLAIN ANALYZE output weird for Top-N Sort Simon Riggs <simon@2ndQuadrant.com>
Re: EXPLAIN ANALYZE output weird for Top-N Sort Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN ANALYZE output weird for Top-N Sort David G Johnston <david.g.johnston@gmail.com>
Re: EXPLAIN ANALYZE output weird for Top-N Sort Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN ANALYZE output weird for Top-N Sort David G Johnston <david.g.johnston@gmail.com>
Re: EXPLAIN ANALYZE output weird for Top-N Sort Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN ANALYZE output weird for Top-N Sort Jeremy Harris <jgh@wizmail.org>
Re: EXPLAIN ANALYZE output weird for Top-N Sort Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN ANALYZE output weird for Top-N Sort Jeremy Harris <jgh@wizmail.org>
On 14/11/14 14:54, Tom Lane wrote: > Jeremy Harris writes: >> On 14/11/14 00:46, Simon Riggs wrote: >>> Limit (cost=.... rows=20 width=175) (actual time=.... rows=20 loops=1) >>> -> Sort (cost=.... rows=568733 width=175) (actual time=.... >>> rows=20 loops=1) >>> Sort Method: top-N heapsort > >> Going off on a tangent, when I was playing with a merge-sort >> implementation I propagated limit information into the sort >> node, for a significant win. > > I'm not entirely following. The top-N heapsort approach already > makes use of the limit info. Having gone back to look, you're right. It was Uniq nodes I merged (the sort handles both bounded-output and dedup). -- Cheers, Jeremy
В списке pgsql-hackers по дате отправления
От: Alvaro Herrera
Дата: