MySQL select seems very slow but cannot think how to improve?
问题 I have a single table with four columns... `id` INT(11) NOT NULL AUTO_INCREMENT `tid` INT(11) NOT NULL `cid` INT(11) NOT NULL `name` NVARCHAR(4096) NULL DEFAULT NULL id is the unique primary key. The other columns are not unique. I want to return the list of all id values that have specific tid and cid values and are sorted by the name. So this... select id from myTable where cid = 1 && tid = 1 order by name There are about 125k records in the table and there should be around 50k that happen