Operating System - HP-UX
1753481 Members
4582 Online
108794 Solutions
New Discussion юеВ

Re: index move - now queries are really slow

 
SOLVED
Go to solution
Ratzie
Super Advisor

Re: index move - now queries are really slow

Explain Plan is doing a full table scan instead of using the index, this happens mostly with joins.

How do I set to use the index instead.
Sandman!
Honored Contributor

Re: index move - now queries are really slow

How about supplying hints to your SQL statement forcing it to pick up the indexes. Other options can be re-writing the SQL to be optimized or creating indexes which will be picked up.

~cheers
Julio Yamawaki
Esteemed Contributor

Re: index move - now queries are really slow

Hi,

Can you post the execution plan, table describe and indexes of the table?

Regards,
Ratzie
Super Advisor

Re: index move - now queries are really slow

It is long winded but I hope you can decifer it

Julio Yamawaki
Esteemed Contributor
Solution

Re: index move - now queries are really slow

Hi,

You see why the query is not using the needed indexes?
Because your fields are nullable.
Nullable fields are not used in a query.
You must change this fields for NOT NULL.

Regards,
Yogeeraj_1
Honored Contributor

Re: index move - now queries are really slow

hi,

Julio is right.

If you are using CBO, you must not also ignore your table statistics!

select * from user_tables where table_name in ('vt_hist','vt_hist_qlog');

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Ratzie
Super Advisor

Re: index move - now queries are really slow

Thanks