Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

iamgroot avatar image
iamgroot asked ·

How do I check if vertex exists before performing an update?

We have a use case where we have geo data like sub-urbs, regions , states and countries and they are related with each other as

SUBURB ---belongsto ------REGION --------belognsto--------STATE-----belongsto------COUNTRY

The data for the different nodes above is already loaded with some existing schema like

SuburbID
Name
Boundary

Now, we have to add new additional property value to the existing suburb vertices. Can we use GraphLoader in this case and try to do bulk loading of the additional properties for the existing vertices.

Typical flow should be while loading GraphLoader verifies if the vertex exist add the new property to the vertex.

Also if we cannot use graph loader, what would be the best way to add additional properties o the existing vertex.

graph
10 |1000 characters needed characters left characters exceeded

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

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

[Closing as duplicate of question #10328]

Share
10 |1000 characters needed characters left characters exceeded

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