...面临能源短缺危局打破行业垄断成当务之急 『计算机』 文件格式转换程序设计 『数据结构』 数据结构设计扫描排序(scan sort) 『计算机安全』 浅析计算机信息安全问题 『报告中心 > 计算机 > 其它计算机>嵌入式实时操作系统』 计算机嵌入式实...
基于42个网页-相关网页
Sorting is required when no index satisfies the requested ordering of fetched rows, or the optimizer determines that a sort is less expensive than an index scan.
如果没有索引满足所取的行的要求顺序,或者优化器断定排序的代价低于索引扫描,那么就需要进行排序。
Typically, a non-matching index scan is chosen by the optimizer when the underlying index provides benefits such as index-only access, avoids sort, or some similar benefit.
通常情况下,在基础索引提供好处(如唯一索引访问、避免排序或一些类似的好处)时,可通过优化器选择非匹配索引扫描。
Therefore, when deciding which join method to choose, the optimizer balances the sort cost and the performance benefit for the inner table scan to drive the decision.
因此,在决定选择哪种联接方法时,优化器为内部表扫描平衡排序成本和性能优势以便促进决策。
应用推荐