In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
ALTER TABLE `tableA` ADD INDEX `tablea_idx_id2_id1` (`ID2`,`ID1`);
SELECT
AVG(NULLIF(tableA.dollarValue,
0))
FROM
tableA
WHERE
tableA.ID2 = 5
AND tableA.ID1 BETWEEN 15000 AND 20000