You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method delegates to IdGraph#addVertex(Object) that checks that the ID doesn't exist by iterating all the nodes in the database, and then creates the new element.
We can avoid this useless iteration (NeoEMF IDs are unique) by telling the backend it should not worry about ID uniqueness. IdGraph#enforeUniqueIDs(boolean) can help.
The text was updated successfully, but these errors were encountered:
This behavior has been defined in the constructor of AbstractBlueprintsBackend#InternalIdGraph.
But we have to be careful: uniqueness cannot be guaranteed when creating a new Id.
However, the probability of collision is assumed to be very low (UUID Collisions)
We need to make sure that EcoreUtil#generateUUID() generates a valid UUID, because it looks shorter (and therefore less safe) than the result of UUID.generate(). According the the documentation, it generate a 128-bit UUID, it's maybe sufficient.
This method delegates to IdGraph#addVertex(Object) that checks that the ID doesn't exist by iterating all the nodes in the database, and then creates the new element.
We can avoid this useless iteration (NeoEMF IDs are unique) by telling the backend it should not worry about ID uniqueness.
IdGraph#enforeUniqueIDs(boolean)
can help.The text was updated successfully, but these errors were encountered: