ah ok, i was thinking about batch adding. delaying the write is no guarantee: you don't call refresh on the phpcr session so the newly added names do not become visible if the parent was already loaded, which is quite possible. but anyways the generated name is quite random. if php provides some sort of thread unique identifier, we could add that to the hint to further reduce possible collisions - at the cost of long node names. imho it should be good enough to just create the names a bit earlier - after all it is random names, not some sort of current time.