Oracle parameter array binding from c# executed parallel and serial on different servers

Posted by redir_dev_nut on Server Fault See other posts from Server Fault or by redir_dev_nut
Published on 2012-06-12T22:56:49Z Indexed on 2012/06/13 4:41 UTC
Read the original article Hit count: 498

Filed under:
|
|
|
|

I have two Oracle 9i 64 bit servers, dev and prod. Calling a procedure from a c# app with parameter array binding, prod executes the procedure simultaneously for each value in the parameter array, but dev executes for each value serially.

So, if the sproc does:

select count(*) into cnt from mytable where id = 123;
if cnt = 0 then
    insert into mytable (id) values (123);
end if;

Assuming the table initially does not have an id = 123 row. Dev gets cnt = 0 for the first array parameter value, then 1 for each of the subsequent. Prod gets cnt = 0 for all array parameter values and inserts id 123 for each.

Is this a configuration difference, an illusion due to speed difference, something else?

© Server Fault or respective owner

Related posts about Oracle

Related posts about array