Yoshio
2007-04-13 17:54:49 UTC
Hi guys! This my first question here.
My database need a concurrency control and I am using locks.
In tests I am using 100 Threads to insert anything in database. For
each insert I do:
-lock_id
-lock_get
-txn_begin
-db.put
-txn.commit
-lock_put
This sequence for each insert is correct?
To make checkpoint or syncs I need locks and transactions too?
I am using Python (Bindings for BerkeleyDB[1]), but I believe that
operation is not different in other languages.
[1] - http://pybsddb.sourceforge.net
My database need a concurrency control and I am using locks.
In tests I am using 100 Threads to insert anything in database. For
each insert I do:
-lock_id
-lock_get
-txn_begin
-db.put
-txn.commit
-lock_put
This sequence for each insert is correct?
To make checkpoint or syncs I need locks and transactions too?
I am using Python (Bindings for BerkeleyDB[1]), but I believe that
operation is not different in other languages.
[1] - http://pybsddb.sourceforge.net