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 -> Waht is better: Insert and update or Select Update else insert

Waht is better: Insert and update or Select Update else insert

From: Nicolas Bronke <newsgroup_at_trinity.de>
Date: Sun, 5 Nov 2000 15:52:16 +0100
Message-ID: <8u3s82$vss$00$1@news.t-online.com>

Hi,

what is the better (performance) if I want to make many updates and inserts:

  1. INSERT and if fails then update or
  2. Select for Update and if records found update else insert

The second is better in my opinion, because if I using also the nowait clause I get a checked whether the record is also be locked.

But what is better in performance on condition that insert and updates has nearly the same quantity.

Thanks in advance

regards
Nicolas Received on Sun Nov 05 2000 - 08:52:16 CST

Original text of this message

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