- 17.9K All Categories
- 3.4K Industry Applications
- 3.4K Intelligent Advisor
- 73 Insurance
- 537.3K On-Premises Infrastructure
- 138.6K Analytics Software
- 38.6K Application Development Software
- 6K Cloud Platform
- 109.6K Database Software
- 17.6K Enterprise Manager
- 8.8K Hardware
- 71.2K Infrastructure Software
- 105.3K Integration
- 41.6K Security Software
more automatic query expansions to use available function based index (e.g. UPPER,DECODE)
I would really like to see the query expansion already implemented for TRUNC and SUBSTR applied more commen e.g. for UPPER and DECODE (for better support of "partial" indexes as already outlined in the DECODE use case below).
A query has an equality predicate eq(t.c,constant_expression) on column t.c and table t has a function based index f(t.c).
Shoudn't it then be possible to add a predicate eq(f(t.c),f(constant_expression)) to the query to enable additional access pathes via index f(t.c) ?
create index upper_DEPARTMENT_NAME on DEPARTMENTS (upper(DEPARTMENT_NAME));
queries with a predicate
... from ... DEPARTMENTS ... where ... DEPARTMENT_NAME=:b1 ...
should be rewritten to and optimized with
... from ... DEPARTMENTS ... where ... (DEPARTMENT_NAME=:b1 AND upper(DEPARTMENT_NAME)=upper(:b1)) ...
to enable the INDEX RANGE SCAN access path via index upper_DEPARTMENT_NAME.