Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Slow update query
I have two immediate comments and a question
Can you post the explain plan?
-- Niall Litchfield Oracle DBA Audit Commission UK "Tayfun Yetkin" <yetkin_at_bornova.ege.edu.tr> wrote in message news:e82b22f6.0403160445.5bc23204_at_posting.google.com...Received on Tue Mar 16 2004 - 09:24:23 CST
> I want to update table by using another table columns. I wrote the
> update query like as below. But it takes an hour and not finished. All
> table structure is similar and similar size (220000 records for each).
> How can optimize the query or is there any other solution for making
> this update
>
> UPDATE CELLCFG.NEIGHBOUR_LIST N1
> SET
> (CAND, CS, KHYST, KOFFSETP, LHYST, LOFFSETP,
> TRHYST, TROFFSETP, AWOFFSET, BQOFFSET)=
> (SELECT N2.CAND, N2.CS, N2.KHYST, N2.KOFFSET, N2.LHYST, N2.LOFFSET,
> N2.TRHYST, N2.TROFFSET, N2.AWOFFSET, N2.BQOFFSET
> FROM CELLTRANSFORM.NEIGHBOUR_LIST
> WHERE N1.MAIN_CELL_KEY=N2.MAINKEY
> AND N1.NEIGHBOUR_CELL_KEY=N2.NBRKEY);
>
> BR
>
> Tayfun