Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> update takes to long

update takes to long

From: andersleffler <andersleffler_at_hotmail.com>
Date: 16 Feb 2007 06:12:22 -0800
Message-ID: <1171635142.611114.110020@t69g2000cwt.googlegroups.com>


I have a sql statement that really could use som tuning, but I do not know how. It is updated by a self join, and contains appr 20000 rows. The statement executes on almost 3 minutes. I have rewritten it to an anonymous block, but I only reduce the time by half, which is not enough. Any help would be appreciated. Thanks

UPDATE a

   SET (sortorder) = (SELECT COUNT (sortorder)

                      FROM a b
                     WHERE b.PATH <= a.PATH)
Received on Fri Feb 16 2007 - 08:12:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US