Deepak Agarwal
Deepak Agarwal

Reputation: 905

Insert/Update operation locks the read operation in arangodb

We are using arangodb 2.6.2.

Lets say there are 2 collection A and B.

FOR a in A INSERT {'x':1} in B

When the above aql is running, my following query block:

FOR b in B return b

How can I avoid the locking of read while modifying in separate thread.

Upvotes: 1

Views: 260

Answers (1)

dothebart
dothebart

Reputation: 6067

Writing without locking is unfortunately not possible at the moment.

As we started 3 years ago to build Arango we made the design decision to work with collection locks at the beginning.

This decision has made some things easier - but it hurts especially with long running queries as in your example.

But it is planned to change this when we reach some milestones. 3.0 was the most important of them and we will target the locking stuff now.

We will hopefully finish the development for this later this year.

Upvotes: 2

Related Questions