
[英]Does having a dedicated a single-column index have a substantial performance benefit over a composite index with the same column leading it?
我有一个看起来像的映射表 已经存在两个复合索引group_id, item_id和item_id, group_id 我发现从表中删除group_id的所有记录非常慢(例如DELETE FROM table_name WHERE group_id = 1 )。 根据我通过使用EXPLAIN前导列复 ...