unique index per label


stan...@...
 

Hi,Robert. I want to index all my vertex.But it seems to slow. Is there any resolvent?

在 2017年9月12日星期二 UTC+8上午12:35:10,Robert Dale写道:



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 <an...@...> wrote:
Unique index is globally.

~AnkurG


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 janusgraph-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/f46ec589-a3fe-4608-bcbd-0d0e1bdcf1f3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


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.

~AnkurG


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 janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/f46ec589-a3fe-4608-bcbd-0d0e1bdcf1f3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Ankur Goel <ankur...@...>
 

Unique index is globally.

~AnkurG


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?



yair...@...
 

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?