I have a table in database with 450.000 rows.
Why is this query extremely slow? Can I fix it?
SELECT `ART_ARTICLE_NR`, `NAME`, `SUP_BRAND`, `PATH`, `CROSS_TYPE_NO`,
GROUP_CONCAT(`CATEG` ORDER BY `STR_LEVEL` ASC SEPARATOR '>>') AS CATEG2
FROM TOF_ARTICLES2
LIMIT 9
看起来像在进行全表扫描,如果尚未完成,则添加索引
alter table TOF_ARTICLES2 add index STR_LEVE_idx(STR_LEVE)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.