EXPLAIN EXTENDED
SELECT * FROM table_name
where dummy_date
between '2020-12-01' AND '2020-12-31'
-- between '2020-12-01' AND '2020-12-20'
AND name='something';
ALTER TABLE `table_name` ADD INDEX `dummy_date_index`(`dummy_date`);
if dummy_date is between 20-25 days then query used indexing for 700,000 records but if it is more than 25 days then query is not using indexing and doing full table scan. please let me know the correct approach to utilize index.