Skip to content

Outline digest match fails with EXPLAIN ANALYZE #46

@kaiwangchen

Description

@kaiwangchen
-- ind_1 was chosen without outline
CALL dbms_outln.add_index_outline('outline_db', '', 1, 'USE INDEX', 'ind_2', '',
"select * from t1 where t1.col1 =1 and t1.col2 ='xpchild'");
EXPLAIN FORMAT = tree SELECT * FROM t1 WHERE t1.col1 =2 AND t1.col2 ='xpchild';
EXPLAIN
-> Filter: (t1.col1 = 2)  (cost=0.35 rows=1)
    -> Index lookup on t1 using ind_2 (col2='xpchild')  (cost=0.35 rows=1)

EXPLAIN ANALYZE SELECT * FROM t1 WHERE t1.col1 =2 AND t1.col2 ='xpchild';
EXPLAIN
-> Filter: (t1.col2 = 'xpchild')  (cost=0.35 rows=1) (actual time=0.016..0.017 rows=1 loops=1)
    -> Index lookup on t1 using ind_1 (col1=2)  (cost=0.35 rows=1) (actual time=0.014..0.016 rows=1 loops=1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions