Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 19 May 2008 @ 10:29:47 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Dirty read during UPDATE question
 
From:   Martin Corn

Hi,

First, I'm pretty fresh to the forum, so hello to everyone :-)

I have a question: the process running ~every two hours updates a target table, which is also access by the analysts using ODBC - through views with LOCK FOR ACCESS.

Some rows are updated, some are new; we did it in two steps as UPDATE and INSERT, to avoid rows 'disappearing' for a short period if we do it as DELETE/INSERT.

However, the execution plan for UPDATE anyways does a MERGE DELETE and MERGE; so I'm wondering if the rows deleted and inserted in one UPDATE command would be still visible to the users using 'dirty read' (lock for access), or not? If not, then we can just do DELETE / INSERT in one step...


Thanks,

Martin



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023