node-neo4j icon indicating copy to clipboard operation
node-neo4j copied to clipboard

Double Insert.

Open dasaievcastro opened this issue 10 years ago • 2 comments

Hi guys,

I am experiencing a strange situation. Randomly to insert a record in the database is a "double insert", the record is added twice. I've used setTimeout node in order to avoid problems of double click. If I click several times in the time to insert a record in the database setTimeout works, do not let me enter multiple, is just working. Any suggestions? I'm doing my requests via Jquery.

Thank

dasaievcastro avatar May 29 '14 15:05 dasaievcastro

I think we need more details about how you're creating the "record". Can you reproduce with logging enabled so you can see that you're really actually only making one request with the neo4j client?

freeeve avatar May 29 '14 15:05 freeeve

Hi,

I increased the delay time for the inserts and I will do a test to see if the problem ends.

dasaievcastro avatar May 29 '14 15:05 dasaievcastro