Re: Query went slow all of sudden. ON V 11.3 - Mailing list pgsql-performance

From Michael Lewis
Subject Re: Query went slow all of sudden. ON V 11.3
Date
Msg-id CAHOFxGofY1e8UEBcvPvjcM05s0Zj+qy4YTZhBMMFrcA40kWPAA@mail.gmail.com
Whole thread Raw
In response to Re: Query went slow all of sudden. ON V 11.3  (nikhil raj <nikhilraj474@gmail.com>)
List pgsql-performance
What are approx row counts and distribution of data in the concerned tables and columns? Have you run EXPLAIN (query plan) to get the plan that will be executed and can you paste on https://explain.depesz.com/ and share the link that results?

Do you have an index on LOWER( cr ) on table temp_10032019020721_4470?
Do you have an index on LOWER( c_pagealias ) on table t_ages?
Do you have an index on LOWER(  c_id ) on table t_meners?

If temp_10032019020721_4470 is truly temp table, was it analyzed after creating/inserting/updating/deleting data last, so that the optimizer knows the number of distinct values, how many rows, most common values, etc?


pgsql-performance by date:

Previous
From: nikhil raj
Date:
Subject: Re: Query went slow all of sudden. ON V 11.3
Next
From: Tomas Vondra
Date:
Subject: Re: Query went slow all of sudden. ON V 11.3