For the sake of example, I have a table with columns A B C D E F G H.

为了举例,我有一个带有A B C D E F G H列的表格。

I have created two indexes on the table that correspond to the most used queries. The first is on columns B C D and E. The second is on B C D E and F.

我在表上创建了两个与最常用查询对应的索引。第一个是B C D和E列。第二个是B C D E和F.

The queries that use these columns are called the same number of times and they are each optimized with respect to the indexes.

使用这些列的查询被称为相同的次数,并且每个查询都针对索引进行了优化。

My issue is - due to the multiple indexes I have on this table, the row size is quite large. I'd like to remove one of these indexes, but can't decide which one.

我的问题是 - 由于我在这个表上有多个索引,行大小非常​​大。我想删除其中一个索引,但无法确定哪个索引。

My question is - if I remove the first index (BCDE), will a query that uses these columns still be optimized by an index on (BCDEF)?

我的问题是 - 如果我删除第一个索引(BCDE),使用这些列的查询是否仍然会被(BCDEF)上的索引优化?

2 个解决方案

#1


7

yes, it will. as well as queries that benefit from using an index on (B), or on (BC), or ON (BCD)

是的,它会。以及在(B),或(BC)或ON(BCD)上使用索引的查询

更多相关文章

  1. 将Excel表格多个Sheet表的数据转换为SQL存储语句
  2. 根据(var2) (var3) (var3)极限X (var3)对var1(1,2,…)组的适当索
  3. Mysql order by语句未使用索引的思考
  4. Alibaba Java开发手册索引规约学习笔记
  5. 制作动态表格(最好的方法)
  6. java使用freemarker导出复杂的excel表格

随机推荐

  1. Android各种音量调节详解
  2. 深刻解析 Android 的 AIDL 介面
  3. 如何将ADT(eclipse)开发工具锁定到LaucherP
  4. adapter 阴影问题
  5. Android(安卓)Activity中启动另一应用程
  6. radio button修改样式
  7. 自定义VIEW③Canvas
  8. 转Launcher研究之AndroidManifest.xml分
  9. Android中的Menu点滴记录
  10. 《Android取证实战:调查、分析与移动安全