Re: [Neo4j] iOS app with neo4j

2014-01-14 Thread Michael Hunger
UUIDs have a really low collision probability. Many others don't care about it, and if you're not facebook or MS scale I wouldn't bother. The probability of any other error in your system is much higher. MERGE and create unique can check on other properties too, not just an UID. Michael Am 14.0

Re: [Neo4j] iOS app with neo4j

2014-01-14 Thread Jake Ortiz
Tried to use the extension, but it results that it is not performing correctly in 2.0. The method of creating the uuid in code and later assigning to the server is the one i have been using. Even though the probability is very reduced, I have no way from code to recursively try for a new uuid i

Re: [Neo4j] iOS app with neo4j

2014-01-13 Thread Michael Hunger
There is for instance an uuid generating neo4j-extension from Stefan Armbruster which might be worth checking out. Otherwise you can also generate the uuid externally and use MERGE (n:User { uuid : {uuid}}) ON CREATE SET n.name = {name} return n Why do you want to assign an UUID to a relationsh

[Neo4j] iOS app with neo4j

2014-01-13 Thread Jake Ortiz
Currently I'm developing a social app for the iPhone with my computer as a server, and have bumped into a couple of obstacles. One I'm particularly trying to figure out is how assign an UUID to a node or relationship upon creation and if it already exists try again with a different uuid. I want