-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add verteKey #3328
add verteKey #3328
Changes from 7 commits
3a652da
3dc610b
ccf0e05
b1d32ed
21473fe
21987fb
8ae9612
6d40a51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ Feature: Delete int vid of tag | |
""" | ||
Then the result should be, in any order: | ||
| player.name | player.age | | ||
| EMPTY | EMPTY | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't return a result with all properties empty value when the vertex doesn't exist. The empty response is what we expect. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we add a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we plan to support |
||
When executing query: | ||
""" | ||
FETCH PROP ON bachelor hash("Tim Duncan") YIELD bachelor.name, bachelor.speciality | ||
|
@@ -94,12 +95,14 @@ Feature: Delete int vid of tag | |
""" | ||
Then the result should be, in any order: | ||
| player.name | player.age | | ||
| EMPTY | EMPTY | | ||
When executing query: | ||
""" | ||
FETCH PROP ON bachelor hash("Tim Duncan") YIELD bachelor.name, bachelor.speciality | ||
""" | ||
Then the result should be, in any order: | ||
| bachelor.name | bachelor.speciality | | ||
| EMPTY | EMPTY | | ||
When executing query: | ||
""" | ||
LOOKUP ON player WHERE player.name == "Tim Duncan" YIELD id(vertex) as id | ||
|
@@ -146,12 +149,14 @@ Feature: Delete int vid of tag | |
""" | ||
Then the result should be, in any order: | ||
| player.name | player.age | | ||
| EMPTY | EMPTY | | ||
When executing query: | ||
""" | ||
FETCH PROP ON bachelor hash("Tim Duncan") YIELD bachelor.name, bachelor.speciality | ||
""" | ||
Then the result should be, in any order: | ||
| bachelor.name | bachelor.speciality | | ||
| EMPTY | EMPTY | | ||
When executing query: | ||
""" | ||
LOOKUP ON player WHERE player.name == "Tim Duncan" YIELD id(vertex) as id | ||
|
@@ -205,12 +210,14 @@ Feature: Delete int vid of tag | |
""" | ||
Then the result should be, in any order: | ||
| player.name | player.age | | ||
| EMPTY | EMPTY | | ||
When executing query: | ||
""" | ||
FETCH PROP ON player hash("Tony Parker") YIELD player.name, player.age | ||
""" | ||
Then the result should be, in any order: | ||
| player.name | player.age | | ||
| EMPTY | EMPTY | | ||
When executing query: | ||
""" | ||
LOOKUP ON player WHERE player.name == "Tim Duncan" YIELD id(vertex) as id | ||
|
@@ -256,6 +263,7 @@ Feature: Delete int vid of tag | |
""" | ||
Then the result should be, in any order: | ||
| team.name | | ||
| EMPTY | | ||
# delete tag from pipe and normal | ||
When executing query: | ||
""" | ||
|
@@ -295,6 +303,7 @@ Feature: Delete int vid of tag | |
""" | ||
Then the result should be, in any order: | ||
| team.name | | ||
| EMPTY | | ||
# delete one tag from var and normal | ||
When executing query: | ||
""" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will storing tag/vertex in separate places decrease performance of getting properties of vertex?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There will be a decline, but it is negligible for the following reasons:
get()
request, and the overhead is very small.vertexKey
andtagKey
together, and use the method ofprefix
for query. But the performance of rocksdb'sseek()
anditerate()
is very poor, which may be dozens of times that ofget()
. This approach will bring performance degradation instead. Of course this is just a theoretical analysis, I will do a simple experiment if necessary.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok