Index a sum column

后端 未结 5 1513
执念已碎
执念已碎 2021-02-07 02:07

Is creating an index for a column that is being summed is faster than no index?

5条回答
  •  难免孤独
    2021-02-07 02:23

    If the index is covering, it will generally be faster. How much faster will be determined by the difference between the number of columns in the table versus the number in the index. In addition, it might be faster if there are any filtering criteria.

提交回复
热议问题