Neptune JupyterNotebook opencypher queries block when other queries running

0

When I run some queries to insert nodes or insert relations with python codes in Neptune JupyterNotebook, I open a second notebook and then run some simple opencypher queries like

%%oc
MATCH (n)
WITH count(n) as NumberOfNodes
MATCH ()-[r]-()
RETURN NumberOfNodes, count(r) as NumberOfRelationships

It will block until all the insertion finished. Personally I find this really inconvenient.

  • Can you clarify the question here, are you stating that you are running an insert in Notebook 1 and that is blocking all requests coming from Notebook 2?

已提问 6 个月前205 查看次数
1 回答
0

Hello,

To run insert node, insert relation and other Cypher queries in parallel sessions we need to close or commit transactions after executing insert node or insert relation to release the locks and to avoid conflicts and data inconsistency as while inserting nodes, the transactions might be locking the database until they are committed. Please raise a support case if you are facing any error messages.

Thanks

AWS
支持工程师
Dev_G
已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则