简体   繁体   English

插入/更新操作将读取操作锁定在arangodb中

[英]Insert/Update operation locks the read operation in arangodb

We are using arangodb 2.6.2. 我们正在使用arangodb 2.6.2。

Lets say there are 2 collection A and B. 可以说有两个集合A和B。

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

When the above aql is running, my following query block: 当上面的aql运行时,我的以下查询块:

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. 在3年前开始构建Arango时,我们就做出了设计决定,一开始就使用收集锁。

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. 3.0是其中最重要的,我们现在将目标锁定。

We will hopefully finish the development for this later this year. 我们希望今年晚些时候完成开发。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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