What is the issue with this query ? It is taking 0.5 to 0.6 seconds to load data from mysql table with more than 220,000 records
SELECT correct
FROM `answers`
WHERE `assignment_id` =2055
AND (
`correct` = 'N' || 'NA'
)
AND `topic_id` = '50#j1_5'
AND `student_id`
IN ( 702, 223, 237, 252, 229, 246, 1050, 256, 248, 1049, 243, 241, 244, 242, 249, 236, 250, 245 )
LIMIT 0 , 30
Any helping hands how to get data faster ?See the explain result