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?

demandé il y a 6 mois205 vues
1 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
Dev_G
répondu il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions