Re: Query is slow when order by and limit clause are used in the query

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Re: Query is slow when order by and limit clause are used in the query
Дата
Msg-id CALj2ACUGa2DmNSSYdN9H03nLkP57dSa3R2KMqvm091KARXS5Sw@mail.gmail.com
обсуждение исходный текст
Ответ на Query is slow when order by and limit clause are used in the query  (sreekanth vajrapu <sreekanthvajrapu@gmail.com>)
Ответы Re: Query is slow when order by and limit clause are used in the query  (sreekanth vajrapu <sreekanthvajrapu@gmail.com>)
Список pgsql-bugs
On Mon, May 24, 2021 at 4:19 PM sreekanth vajrapu
<sreekanthvajrapu@gmail.com> wrote:
>
>
> Hi Team,
>
> We are having a slow query issue for one of our applications. We are seeing slowness(5 seconds) when we use both
ORDERBY and LIMIT 30 clause whereas the same query is performing very good(200 MS) when using only ORDER BY clause.
Alsonote that the query performed very fast(200 MS) when we increased LIMIT to 100 along with ORDER  BY. 
>
>
> Can you please help us if there are any bugs related to this?  OR Can someone kindly provide some solution to this
issue?

I think it's good to provide explain (analyze, buffers, costs,
verbose, summary) of the query and a reproducible test case (if
possible). It will be easier for those who investigate the issue.

With Regards,
Bharath Rupireddy.
EnterpriseDB: http://www.enterprisedb.com



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

Предыдущее
От: sreekanth vajrapu
Дата:
Сообщение: Query is slow when order by and limit clause are used in the query
Следующее
От: sreekanth vajrapu
Дата:
Сообщение: Re: Query is slow when order by and limit clause are used in the query