Skip to Main Content

NoSQL Database

Announcement

Testing banner

oracle nosql db has no row based lock?

Eric JingMar 14 2021

Dear sir,

Suppose below is the team table:
CREATE TABLE if not exists teamTable
(
teamid integer GENERATED BY DEFAULT AS IDENTITY
(START WITH 1 INCREMENT BY 1),
users array(record(name string, userid integer)),
primary key (teamid)
)

And suppose there are 2 db requests inserting new users into above table for the same team (same teamid) at the same time for new employees join the company. Does it mean that query 2 cannot been done only until query 1 is finished? If the nosql db is functioning as what I mentioned above, it will reduce it’s write performance if a lot of query want to write/insert/update some data into the same array element at the same time (which below to the same row with the same primary key), and the same applies to the “map”.
So, regarding this, does oracle nosql db has a row lock mechanism similar to oracle database? Or, oracle nosql db does not has a row lock kind of this to improve performance? Thank you.

Comments
Post Details
Added on Mar 14 2021
4 comments
19,122 views