ITPub博客

首页 > Linux操作系统 > Linux操作系统 > OPTIMIZER_INDEX_CACHING和OPTIMIZER_INDEX_COST_ADJ意义

OPTIMIZER_INDEX_CACHING和OPTIMIZER_INDEX_COST_ADJ意义

原创 Linux操作系统 作者:ychw001 时间:2012-10-09 22:17:20 0 删除 编辑
OPTIMIZER_INDEX_CACHING:
OPTIMIZER_INDEX_CACHING lets you adjust the behavior. of cost-based optimization to favor nested loops joins and IN-list iterators.
The cost of executing an index using an IN-list iterator or of executing a nested loops join when an index is used to access the inner table depends on the caching of that index in the buffer cache. The amount of caching depends on factors that the optimizer cannot predict, such as the load on the system and the block access patterns of different users.
You can modify the optimizer's assumptions about index caching for nested loops joins and IN-list iterators by setting this parameter to a value between 0 and 100 to indicate the percentage of the index blocks the optimizer should assume are in the cache. Setting this parameter to a higher value makes nested loops joins and IN-list iterators look less expensive to the optimizer. As a result, it will be more likely to pick nested loops joins over hash or sort-merge joins and to pick indexes using IN-list iterators over other indexes or full table scans. The default for this parameter is 0, which results in default optimizer behavior.

OPTIMIZER_INDEX_COST_ADJ:
OPTIMIZER_INDEX_COST_ADJ lets you tune optimizer behavior. for access path selection to be more or less index friendly—that is, to make the optimizer more or less prone to selecting an index access path over a full table scan.
The default for this parameter is 100 percent, at which the optimizer evaluates index access paths at the regular cost. Any other value makes the optimizer evaluate the access path at that percentage of the regular cost. For example, a setting of 50 makes the index access path look half as expensive as normal.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/435594/viewspace-746022/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2012-09-03

  • 博文量
    1
  • 访问量
    718