‎2008 Feb 20 8:49 PM
hi,
i need to select data from table catsdb but i have lot of
recored like 2,000.000 records ,
i see that this table have secondary index ,
maybe this can help ?
how i use it?
Best Regards
‎2008 Feb 21 9:37 AM
hi Ricardo,
Try including all the fields of secondary index in the where condition of your select statement... This works ..
Regards,
Santosh
‎2008 Feb 20 9:17 PM
‎2008 Feb 21 5:17 AM
Hi,
SELECT required data
FROM catsdb
APPENDING TABLE ITAB
PACKAGE SIZE 30000.
Write your functionality if you want to do any checks
with ITAB data.
ENDSELECT.
Now it never go for Dump .Adjust(increase/Decrease) Package size according to performance.
‎2008 Feb 21 9:32 AM
If you don't specfiy what you want to select, then nobody undertsand why you need the secondary key. Maybe the primary is also o.k.
Just write your select and use all information in the where condition which you have.
It will always work, but if will only perform well, if you have the first fields or all of an index in the WHERE condition.
You don't need a package size, the table has 2.000.000 records, but I hope you want to select much less.
Siegfried
‎2008 Feb 21 9:37 AM
hi Ricardo,
Try including all the fields of secondary index in the where condition of your select statement... This works ..
Regards,
Santosh
‎2008 Feb 22 6:16 AM
Hi
Try using all the fields of secondary index in same sequence and do not use negative condition in your where condition
Use the sequence of the select in same position as in table
Regards
Shiva