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?

asked 6 months ago191 views
1 Answer
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
SUPPORT ENGINEER
Dev_G
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions