Can Multiple Indexes Work Together?

前端 未结 9 1410
情书的邮戳
情书的邮戳 2021-02-19 07:13

Suppose I have a database table with two fields, \"foo\" and \"bar\". Neither of them are unique, but each of them are indexed. However, rather than being indexed together, th

9条回答
  •  自闭症患者
    2021-02-19 07:43

    So is Oracle smart enough to search efficiently here?

    The simple answer is "probably". There are lots'o' very bright people at each of the database vendors working on optimizing the query optimizer, so it's probably doing things that you haven't even thought of. And if you update the statistics, it'll probably do even more.

提交回复
热议问题