Re: unique index per label

Robert Dale <rob...@...>

When a composite index with label restriction is defined as unique, the uniqueness constraint only applies to properties on vertices or edges for the specified label.

Robert Dale

On Mon, Sep 11, 2017 at 9:32 AM, Ankur Goel <ankur...@...> wrote:
Unique index is globally.


On Monday, September 11, 2017 at 4:45:01 PM UTC+5:30, ya...@... wrote:
As I understand labels are used for partitioning. Does the same apply for clustering?

I.E I create vertices and edges with custom properties. Assume I have a unique property called: 'nodeId'.

Now I have logical groups. each group has a UUID. I use this UUID as the vertex label.

Can I create 2 different vertices with the same nodeId if they are assigned different labels? Or is the unique index global to all labels?

You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

For more options, visit

Join to automatically receive all group messages.