0

I am improving the database tables by adding indexes where appropriate.

I'd like to add indexes to attributes that are used on GROUP_BY queries.

Is there a way to automagically know which fields were used by GROUP_BY?

4

1 に答える 1

0

GROUPBYのパフォーマンスとインデックスの存在の間に相関関係があるとは思いません。実行速度が遅いクエリがある場合は、まず、述語または結合がある列のインデックスを確認します。

于 2012-10-27T10:58:04.033 に答える