Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Query tables - delete

Former Member
0 Likes
410

Hi,

Is there a way to quicken the speed of delete? currently, it takes 1 minute to delete 20 records.

statement :

delete from table_name where date > '20080210'?

currently, the table have 5 index key :

mandt, vbeln, posnr, status, username, date, time.

marks will be rewarded if relevant.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
386

Hi,

Because the "date" field is just a part of the primary key of the table this query will not use this index. One way to speed up the process is to define a secundary index (SE11) just on the date.

Regards,

John.

2 REPLIES 2
Read only

Former Member
0 Likes
387

Hi,

Because the "date" field is just a part of the primary key of the table this query will not use this index. One way to speed up the process is to define a secundary index (SE11) just on the date.

Regards,

John.

Read only

Former Member
0 Likes
386

Thanks John.