Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: optimizing in delete-statement
DA Morgan schrieb unter anderem:
> Ralf Beutler wrote:
>
>> DA Morgan wrote: >> >> > My guess is that you have multiple things wrong. Start with an EXPLAIN PLAN. >> > .. post the plans. >> >> DELETE STATEMENT () >> DELETE () TROUTE >> NESTED LOOPS () >> VIEW () VW_NSO_1 >> SORT (UNIQUE) >> TABLE ACCESS (BY INDEX RO TUSERXORGANIZER >> INDEX (RANGE SCAN) I_TUSERXORG_FKUSERID >> INDEX (UNIQUE SCAN) SYS_C001926 >> >> I can't see something wrong. >>
I think there are 3 to 5 rows to be deleted in average. 58,000 rows is the total number of rows.
Remark: I installed a system for tests on a WinNT System and I can't reproduce that problem. The datafiles on the unix-System are placed in RAID 5. I thought about rollback segments: there are 12 RBS and file size is 4MB for each. Redo-Log-Groups: 24 and 20MB in size for each.
> Please don't snip as it is hard to remember specific posts when I
> can't see them.
Hmmm. This causes on postings in german newsgroups. I can't post there generating fullquotes. But here's the statement again:
explain plan for
DELETE FROM tRoute
WHERE RouteId IN
(
SELECT ItemId
FROM tUserXorganizer
WHERE Type = :1 AND FKUserId = :2
)
;
br | rb Received on Tue Feb 11 2003 - 11:31:17 CST
![]() |
![]() |