Well scenario is like this:
I create a one node called counter node
. Its initial value is 0 and incremented as user create its account on my website.
So there are three operation happen to operate this:
Read counter node
value
Do some logic in php . Here like +1 to previous value of counter node
Write new value of counter node
Now problem is, If two or more users are coming exactly same time and creating such a condition that
Before first user write new value to counter node , it is being read by second user. Thus this will leave value of my 'counter node' in unstable condition.
Hope you got what I meant..
Any Solution ??
I am using neo4j 1.9.5 and php
Php Jadell :
https://github.com/jadell/Neo4jPHP
I heard of batch processing but not sure whether it will work. If any solution , Can you please give me a short example.
Thanks Amit Aggarwal
You can't do that with the pure REST API. I would try it with Cypher, maybe something like:
This should work in the latest version of Cypher http://console.neo4j.org/?id=tnkldf