Forum Moderators: open

Message Too Old, No Replies

Query indexing question

         

dualfragment

9:43 am on Feb 7, 2008 (gmt 0)

10+ Year Member



This is one of my queries:

SELECT * FROM GamertagMedals WHERE MedalID = 14 AND Ranked = 1 ORDER BY Count DESC, Gamertag ASC LIMIT 0, 30

Is there any way to index it? I notice problem when I mix ordering by ASC and DESC. How do I get around this?

coopster

12:25 am on Feb 8, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What kind of problems? The values are ignored anyway, index values are always stored in ascending order.

[dev.mysql.com...]