Skip to content

COST OF USING ALTER TAG AND A VERTEX HAVE MULTI TAGS #5365

Answered by wey-gu
PhungQuocLuong-git asked this question in Q&A
Discussion options

You must be logged in to vote

Great question.

Generally

  • one tag per vertex is one record(underlying rocksdb key-value).
  • alter tag won't directly write alter-ed props, unless we write a certain record(vertex-tag record), but before it's written, we could read based on an alter-ed schema, with new default values.

So back to the questions:

  • In case I add a tag when the business changes, 1 vertex will have many tags over time. Is this the flexible of graph database or It will the bad case of modeling ( bad performance ) ?

wey: it will be ok, but when we are doing query, it's always more performant to provide explicit information, i.e. RETURN v. PRODUCT.foo, v.PRODUCT_COLOR.bar is better than RETURN v

  • In case I use A…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PhungQuocLuong-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants