MariaDB 5.5 and lockMode
Posted: Tue 23 Jul 2019 10:15
We want to run a data import program ( lazarus + MyDac and Maria DB 5.5) parallel to different databases:
progA -> dbA
progB -> dbB
progC -> dbC
The Problem: All processes need to connect to a "master" db in which they must update / insert in 2 tables some data. Until now this is no problem, because they run one by one.
I try to produce a "lock problem" with a simple app:
Select * from TableX
while not EOF
INSERT / UPDATE into Table y
NEXT
end;
But I can run this app 2, 3 or 4 times an no lock error is shown (lockmode = lmOptimistic) - and I don't understand that point. Why no lock error is shown..?!?
Best regards
Wolfgang
progA -> dbA
progB -> dbB
progC -> dbC
The Problem: All processes need to connect to a "master" db in which they must update / insert in 2 tables some data. Until now this is no problem, because they run one by one.
I try to produce a "lock problem" with a simple app:
Select * from TableX
while not EOF
INSERT / UPDATE into Table y
NEXT
end;
But I can run this app 2, 3 or 4 times an no lock error is shown (lockmode = lmOptimistic) - and I don't understand that point. Why no lock error is shown..?!?
Best regards
Wolfgang