This new index is used but still the read is 230mb.
https://explain.dalibo.com/plan/b0f28a9e8a136afd De : Chris Hoover <chrish@xxxxxxxxxx>
Envoyé : lundi 12 juin 2023 22:55 À : benoit Cc : pgsql-performance@xxxxxxxxxxxxxxxxxxxx Objet : Re: Forced to use UNION ALL when having multiple ANY operators and ORDER BY LIMIT I normally create my indexes to match the where clause of the query. While technically, it should not matter, I find a lot of time, it does.
I would create an index on (status, sender_reference, sent_at) and see if the improves your query performance.
Thanks,
Chris Hoover
Senior DBA
AWeber.com
Cell: (803) 528-2269
Email: chrish@xxxxxxxxxx
|