question

baid_manish_187433 avatar image
baid_manish_187433 asked bettina.swynnerton edited

Do edge and vertex with the same partition key but different clustering keys reside on different nodes?

DSE 6.8: Edge is created with partition keys from "OUT" vertex's primary key (contains few clustering keys), this implies edge and vertex are going reside on separate nodes?

dsegraph
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

bettina.swynnerton avatar image
bettina.swynnerton answered bettina.swynnerton edited

Hi,

Both the vertex and the edge coming out of the vertex have the same partition key, so this implies that the edge and the vertex reside on the same node. The node is determined by the consistent hashing algorithm from the partition key. The clustering keys do not come into this.

You can test for endpoints with nodetool getendpoints: https://docs.datastax.com/en/dse/6.8/dse-admin/datastax_enterprise/tools/nodetool/toolsGetEndPoints.html

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.