Question
Un-optimize queries are running on metastore_db that's are causing the slowness and high resource uses..
This is the query which is running on metastore_db
SELECT
`A0` . `PART_NAME`
FROM
`PARTITIONS` `A0`
LEFT OUTER JOIN
`TBLS` `B0`
ON
`A0` . `TBL_ID` = `B0` . `TBL_ID`
LEFT OUTER JOIN
`DBS` `C0`
ON
`B0` . `DB_ID` = `C0` . `DB_ID`
WHERE
`C0` . `NAME` = ?
AND `C0` . `CTLG_NAME` = ?
AND `B0` . `TBL_NAME` = ?
AND `A0` . `PART_NAME` LIKE ? ESCAPE ?
how we can optimize it ? Is it system generated?
or from where it is coming at metastore_db database that is inside mysql.
SELECT
"AO"
"PART NAME' FROM 'PARTITIONS
AO' LEFT OUTER JOIN 'TBLS
"RO' ON 'AO'
• 'TBL ID'
** Note ** I am using Trino hive architecture.
Thanks in advance for your help....

