Your query will fall into each table entry, so you do not want to slow down by first clicking on the index and then the table, as this will obviously lead to 2 IOs per record from the table (1 for the index and 1 for the actual table data).
So the first question is, how can you speed up scanning a complete table?
Set up IO. Fast, defragmented, unpartitioned disks (with other data, applications, etc.) etc.
Rather, consider denormalization; for example, a trigger on your table that counts and sums the corresponding data with each insert, update, and delete and stores that value in another table. Then a query for one row of data in this other table.
source share