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 `DAILY_PRICE` ADD INDEX `daily_price_idx_trade_date_stock_code_exchange` (`TRADE_DATE`,`STOCK_CODE`,`EXCHANGE`);
SELECT
*
FROM
POSITION_QUERY t1
JOIN
DAILY_PRICE t2
ON t1.STOCK_CODE = t2.STOCK_CODE
AND t1.STOCK_EXCHANGE = t2.EXCHANGE
AND t2.TRADE_DATE = 20181121
JOIN
DAILY_PRICE t3
ON t1.INDEX_CODE = t3.STOCK_CODE
AND t1.INDEX_EXCHANGE = t3.EXCHANGE
AND t3.TRADE_DATE = 20181121