You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE OR REPLACE VIEW example_v AS
SELECT /*+ NoIndexScan(le) */
le.id
,le.code2
FROM table1 le
WHERE le.code2= 'X';
The execution plan is run with no used hint, even thou the hint is defined on the view level EXPLAIN SELECT * FROM example_v WHERE id=1; --Index Scan using tbl1_pk on table1 le (cost=0.14..16.58 rows=1 width=194)
Needs hinting on the level of the select of the view.
However, many times the views are called from Java or other service, where those hints are not possible to be implemented.
The text was updated successfully, but these errors were encountered:
Hints don't work on view level, for example:
The execution plan is run with no used hint, even thou the hint is defined on the view level
EXPLAIN SELECT * FROM example_v WHERE id=1; --Index Scan using tbl1_pk on table1 le (cost=0.14..16.58 rows=1 width=194)
Needs hinting on the level of the select of the view.
However, many times the views are called from Java or other service, where those hints are not possible to be implemented.
The text was updated successfully, but these errors were encountered: