Forum Stats

  • 3,722,784 Users
  • 2,244,413 Discussions
  • 7,850,085 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

question regarding db lock

Eric Jing
Eric Jing Member Posts: 24 Green Ribbon

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 the same team (with same teamid) at the same time. 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? Thank you.

Sign In or Register to comment.