philippkueng / node-neo4j

Neo4j REST API wrapper for Node.js
MIT License
211 stars 44 forks source link

Double Insert. #42

Open dasaievcastro opened 10 years ago

dasaievcastro commented 10 years ago

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

freeeve commented 10 years ago

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?

dasaievcastro commented 10 years ago

Hi,

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