-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
-- 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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels