Re: sequential scan on select distinct
От
Mischa Sandberg
Тема
Re: sequential scan on select distinct
Дата
Msg-id
8fh9d.25089$MV5.20638@clgrps13
Ответ на
Re: sequential scan on select distinct (Tom Lane)
Список
Дерево обсуждения
sequential scan on select distinct Ole Langbehn <ole@freiheit.com>
Re: sequential scan on select distinct Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Re: sequential scan on select distinct Ole Langbehn <ole@freiheit.com>
Re: sequential scan on select distinct Greg Stark <gsstark@mit.edu>
Re: sequential scan on select distinct Tom Lane <tgl@sss.pgh.pa.us>
Re: sequential scan on select distinct Greg Stark <gsstark@mit.edu>
Re: sequential scan on select distinct Tom Lane <tgl@sss.pgh.pa.us>
Re: sequential scan on select distinct Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Re: sequential scan on select distinct Ole Langbehn <ole@freiheit.com>
Re: sequential scan on select distinct Tom Lane <tgl@sss.pgh.pa.us>
Re: sequential scan on select distinct Mischa Sandberg <ischamay.andbergsay@activestateway.com>
Re: sequential scan on select distinct Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Re: execute cursor fetch my ho <mthoatbanjo@yahoo.com>
Re: execute cursor fetch Tom Lane <tgl@sss.pgh.pa.us>
Re: execute cursor fetch Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Re: execute cursor fetch Stef <svb@ucs.co.za>
Re: execute cursor fetch Kris Jurka <books@ejurka.com>
Re: sequential scan on select distinct Tom Lane <tgl@sss.pgh.pa.us>
Re: sequential scan on select distinct Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Tom Lane wrote: > Ole Langbehn writes: > >>>What do you think about the idea of an "UniqueSort" which would do >>>sort+unique in one pass ? > >>This is what oracle does and it is quite fast with it... > Hashing is at least as fast, if not faster. > > regards, tom lane I got good mileage in a different SQL engine, by combining the hash-aggregate and sort nodes into a single operator. The hash table was just an index into the equivalent of the heap used for generating runs. That gave me partially aggregated data, or eliminated duplicate keys, without extra memory overhead of the hash-aggregation node below the sort. Memory was scarce then ... :-) BTW I'm really puzzled that Oracle is pushing 'index skip scan' as a new feature. Wasn't this in the original Oracle Rdb --- one of Gennady Antoshenkov's tweaks?
В списке pgsql-performance по дате отправления
От: Janning Vygen
Дата: