简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM