Re: select distinct runs slow on pg 10.6
От
Justin Pryzby
Тема
Re: select distinct runs slow on pg 10.6
Дата
Msg-id
20190909103930.GP7201@telsasoft.com
Ответ на
select distinct runs slow on pg 10.6 (yash mehta)
Список
Дерево обсуждения
select distinct runs slow on pg 10.6 yash mehta <yash215@gmail.com>
Re: select distinct runs slow on pg 10.6 Justin Pryzby <pryzby@telsasoft.com>
Re: select distinct runs slow on pg 10.6 Flo Rance <trourance@gmail.com>
Re: select distinct runs slow on pg 10.6 Michael Lewis <mlewis@entrata.com>
Re: select distinct runs slow on pg 10.6 yash mehta <yash215@gmail.com>
Re: select distinct runs slow on pg 10.6 Rick Otten <rottenwindfish@gmail.com>
Re: select distinct runs slow on pg 10.6 Merlin Moncure <mmoncure@gmail.com>
Re: select distinct runs slow on pg 10.6 Dinesh Somani <dinesh@opsveda.com>
Re: select distinct runs slow on pg 10.6 Rick Otten <rottenwindfish@gmail.com>
Re: select distinct runs slow on pg 10.6 Merlin Moncure <mmoncure@gmail.com>
Re: select distinct runs slow on pg 10.6 Dinesh Somani <dinesh@opsveda.com>
On Mon, Sep 09, 2019 at 02:00:01PM +0530, yash mehta wrote: > We have a query that takes 1min to execute in postgres 10.6 and the same > executes in 4 sec in Oracle database. The query is doing 'select distinct'. > If I add a 'group by' clause, performance in postgres improves > significantly and fetches results in 2 sec (better than oracle). But > unfortunately, we cannot modify the query. Could you please suggest a way > to improve performance in Postgres without modifying the query. Not sure it helps, but I remember this: https://www.postgresql.org/message-id/CAKJS1f9q0j3BgMUsDbtf9%3DecfVLnqvkYB44MXj0gpVuamcN8Xw%40mail.gmail.com
В списке pgsql-performance по дате отправления