I asked this same question a little while ago, the answer is that its up to you to guarantee uniqueness. There are a few different ways to to this, for now I took the easy way out and do all writes with a single thread. I'm basically just using a ThreadPoolExecutor with a single thread and different command objects implementing Callable<T>.
-Matt On Thu, Jun 30, 2011 at 6:03 AM, V <[email protected]> wrote: > I have an element of my node marked with > @Indexed > String name > > I want to ensure that when I persist nodes, only one node with that name > gets persisted. (I want to throw an error here and ask the user to give a > different name) > What is the best way to ensure this. Any suggestions ? > > - Karan > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

