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?

posta 6 mesi fa205 visualizzazioni
1 Risposta
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
TECNICO DI SUPPORTO
Dev_G
con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande