‎2008 Jun 30 9:12 AM
Hi all,
Select query from CDHDR table is taking long time,in where condition i am giving OBJECTCLASS = 'MAT_FULL' udate = sy-datum and langu = 'EN'.
any suggestion to improve the performance.i want to select all the article which got changed on current date
regards
shibu
‎2008 Jun 30 9:26 AM
This will always be slow for large data volumes, since CDHDR is designed for quick access by object ID (in this case material number), not by date.
I'm afraid you would need to introduce a secondary index on OBJECTCLAS and UDATE, if that query is crucial enough to warrant the additional disk space and processing time taken by the new index.
Greetings
Thomas
‎2008 Jun 30 9:20 AM
Hi..
please make sure that u are not using select * , and are selcting only those fields which are required...That may be one reason of the select query taking longtime..U can paste the select query so that we can get a clearer picture...
Regards
Rudra
‎2008 Jun 30 9:26 AM
This will always be slow for large data volumes, since CDHDR is designed for quick access by object ID (in this case material number), not by date.
I'm afraid you would need to introduce a secondary index on OBJECTCLAS and UDATE, if that query is crucial enough to warrant the additional disk space and processing time taken by the new index.
Greetings
Thomas
‎2008 Jun 30 9:35 AM
Hello
1. Use your query in LOOP...ENDLOOP with OBJECTID field.
2. Make a secondary index.
‎2008 Jul 01 2:13 PM
Have you got a range of objectids you could use?
eg. 0100000000 - 090000000 depending on your matnr range
‎2008 Jul 03 11:13 AM