1.
First take a look if the db-table is fragmented or not :
Use function derived_stat for this to determine if your index/data is fragmented or not.
select derived_stat("<table_name>", "<clus_indexname>", "dpcr")
Value between 0 and 1. Nearby 1 not fragmented. Near 0 then fragmented.
If fragmented then do rebuild the index. ( drop and then create ).
Beware, lots of, takes time and resources to rebuild a clustered index having a table that 'big'.
2. Force the index to be used...
select count(*)
from A ( index <indexname> )
where b <= 10
Better to not use index-forcing.. This I personnally find a very cheap method.
For more methods and for further reading about these methods I will ask
you to read the Sybase ASE performance and tuning manuals which are available at the Sybase website(s)
gr,
Jan