I have a mysql memory table with contains priorities assign to each row.I am creating this table every 2 minutes and this table is being called almost 100 times/second.
It contains around 800 rows.
Query I am running is like:
select * from table order by priority limit 0,20
I want to optimize this query.Can I put the data in the sorted order while creating the table and can assume data pulled will always be sorted based on priority if I remove the order by
clause.
Thanks