Query optimization

From: Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Query optimization
Date: 2025-03-13 19:12:36
Message-ID: CAJCZkoL+DHs0H9enQEg8JXZw=7032zrmFKG8Vx0fup6_wqNpnQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Team

This query takes more time than usual for execution

How to optimize it in best possible way

Columns used in this query >> composite index eventhough not running
optimally

SELECT EXISTS (SELECT Key FROM CACHEKEYS WHERE CacheType = $1 AND TrsId =
$2 AND BrandId = $3 AND SportId = $4 AND CompetitionId = $5 AND EventId =
$6 AND MarketId = $7 LIMIT ?)

Regards
Durga Mahesh

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2025-03-13 19:17:00 Re: hide data from admins
Previous Message Jehan-Guillaume de Rorthais 2025-03-13 18:37:14 Re: hide data from admins