-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
扩展hint配置index dive
对索引列进行范围查询、且谓词等值条件数量小于eq_range_index_dive_limit时,优化器会使用索引下探(index dive)估计索引列上符合谓词条件的记录数。但是eq_range_index_dive_limit不能按SQL灵活配置。因此通过hint扩展。
示例:# 对 t1 的索引下探页面数量设置为 10, t2 的索引下探页面数量设置为 100.
select /+index_dive_pages(t1 10) index_dive_pages(t2 100)/ * from t1, t2 where t1.a = t2.a and t2.b > 20 and t1.b > 100;
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers