Right now we don't enforce uniqueness of property ids, which can lead to
very weird results:

gremlin> g = TinkerGraph.open().traversal()
==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin> g.addV().property(single, 'foo', 'bar', id, 1).property(single,
'bar', 'baz', id, 1)
==>v[0]
gremlin> g.V().properties().hasId(1)
==>vp[bar->baz]
==>vp[bar->baz]


If we allow users to manually specify property ids, the above query should
throw an exception.

IMO, local uniqueness should be enough (given alone the complexity it would
require to ensure global uniqueness).

Thoughts? Objections? More/other suggestions?

Cheers,
Daniel

Reply via email to