Re: Re: Index not used to avoid sort with calculated column

  • From: Jonathan Lewis <jonathan@xxxxxxxxxxxxxxxxxx>
  • To: "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 27 Jun 2019 08:40:31 +0000


With the usual warning that including "invisible" is highly desirable in 12c to 
pre-empt the threats of:
select * ....
and
insert without (list of columns)

Regards
Jonathan Lewis


________________________________________
From: oracle-l-bounce@xxxxxxxxxxxxx <oracle-l-bounce@xxxxxxxxxxxxx> on behalf 
of l.flatz@xxxxxxxxxx <l.flatz@xxxxxxxxxx>
Sent: 27 June 2019 08:57
To: tanel@xxxxxxxxxxxxxx
Cc: martin.a.berger@xxxxxxxxx; oracle-l@xxxxxxxxxxxxx
Subject: Re: Re: Index not used to avoid sort with calculated column

Hi Tanel,

thanks for your help. I is good to have collegues who can help. I was 
suspecting something like that, but  I am up to my neck in work and could not 
affort testing on suspicion.
As from the doc I think going for the virtual column being preferrable. It 
avoids using an underscore parameter.

drop index e_low_sort1;
alter table emp add (low_job as (lower(job)) virtual);
create index e_low_sort1 on emp (low_job, hiredate);

--
//www.freelists.org/webpage/oracle-l


Other related posts: