Double check and locking or conditional insert and multi-threading
Hi all
I have plsql procedure which executes conditional insert like
if <table A doesn't contain row R> then
insert <row R into table A>
end if;
but simultaneous calls do multiple inserts sometimes. In other programming languages problem can be fixed with [double check and lock|http://wikipedia.org/wiki/Double_checked_locking] but plsql has no "synchronized" block.
Thoughts?
Edited by: Denis Kishenko on Jan 14, 2013 12:48 AM
Edited by: Denis Kishenko on Jan 14, 2013 12:52 AM