Hi,
I'm new to MonetDB and I think this is a great project!
I have a problem the same as this one:
https://stackoverflow.com/questions/9179265/how-would-monetdb-perform-with-…
, namely copy data into tables from multiple clients at the same time.
As the stackoverflow question suggests, MonetDB uses Optimistic
Concurrency Control, but the behaviour is different from my
expectation. For example, say I have a table `t` without any
constraints, and I run the following queries:
client1 client2
-------------------------------------------------------------------
start transaction;
insert into t values (1);
start transaction;
insert into t values (2);
commit;
commit;
I would expect both commits succeed since the rows to be inserted do
not conflict with each other and do not change original rows in the
table. And this is the behaviour of some databases with OCC, e.g. TiDB
(a MySQL compatible database). But MonetDB would rollback the second
transaction. So my question is: is it possible to change this
behaviour by modifying the code? If so, could you give me some
guidance or suggestion?
Thanks in advance!
Best Regards,
Yinjie Lin