Re: postgresql long running query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 3, 2021, at 8:11 AM, liam saffioti <liam.saffiotti@xxxxxxxxx> wrote:
> Indexes:
>     "T_CMN_SLAHISTORY_HistoryId_idx" UNIQUE, btree ("HistoryId")
>     "Index-20180207-152712" btree ("RuleName", "DefinitionId")
>     "Index-20180712-192739" btree ("DefinitionId", "IsOldRecordBatch")
>     "Index-20180712-192836" btree ("InstanceId")

Your query was "...WHERE x."DefinitionId" = '302';", but you don't have an index on *just* "DefinitionId". Try creating one.







[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux