forked from alibaba/GraphScope
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(interactive): add some optimizer microbenchmark queries (alibaba#…
…3369) Committed-by: bingqing.lbq from Dev container <!-- Thanks for your contribution! please review https://github.com/alibaba/GraphScope/blob/main/CONTRIBUTING.md before opening an issue. --> ## What do these changes do? <!-- Please give a short brief about these changes. --> As titled. ## Related issue number <!-- Are there any issues opened that will be resolved by merging this change? --> Fixes
- Loading branch information
1 parent
2657681
commit 0146834
Showing
12 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Match (author:PERSON)<-[:HASCREATOR]-(msg1:POST|COMMENT) | ||
Return count(author); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Match (author:PERSON)<-[:HASCREATOR]-(msg1:POST|COMMENT)<-[:REPLYOF]-(msg2:POST|COMMENT) | ||
Return count(author); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Match (author:PERSON)<-[:HASCREATOR]-(msg1:POST|COMMENT) | ||
where msg1.length > $len | ||
Return count(author); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Match (author:PERSON)<-[:HASCREATOR]-(msg1:POST|COMMENT)<-[:REPLYOF]-(msg2:POST|COMMENT) | ||
where msg2.length > $len | ||
Return count(author); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Match (p1:PERSON)-[:KNOWS]->(p2:PERSON) | ||
Where p1.id = $id1 and p2.id = $id2 | ||
Return count(p1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Match (p1:PERSON)-[:KNOWS]->(p2:PERSON)-[:LIKES]->(comment:COMMENT) | ||
Where p1.id = $id1 and p2.id = $id2 and comment.length > $len | ||
Return count(p1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Match (p1:PERSON)-[k:KNOWS]->(p2:PERSON) | ||
Where k.creationDate > $date1 and k.creationDate < $date2 | ||
Return count(p2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Match (p1:PERSON)-[k:KNOWS]->(p2:PERSON)-[:LIKES]->(comment:COMMENT) | ||
Where k.creationDate > $date1 and k.creationDate < $date2 | ||
Return count(p1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Match (message:COMMENT|POST)-[:HASCREATOR]->(person:PERSON), | ||
(message:COMMENT|POST)-[:HASTAG]->(tag:TAG), | ||
(person:PERSON) -[:HASINTEREST]->(tag:TAG) | ||
Return count(person); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Match (person1:PERSON)-[:LIKES]->(message:COMMENT|POST), | ||
(message:COMMENT|POST)-[:HASCREATOR]->(person2:PERSON), | ||
(person1:PERSON)-[:ISLOCATEDIN]->(place:PLACE), | ||
(person2:PERSON) -[:ISLOCATEDIN]->(place:PLACE) | ||
Return count(person1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Match (person1:PERSON)<-[:HASCREATOR]-(comment:COMMENT), | ||
(comment:COMMENT)-[:REPLYOF]->(post:POST), | ||
(post:POST)<-[:CONTAINEROF]-(forum:FORUM), | ||
(forum:FORUM)-[:HASMEMBER]->(person2:PERSON) | ||
Return count(person1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Match (forum:FORUM)-[:CONTAINEROF]->(post:POST), | ||
(forum:FORUM)-[:HASMEMBER]->(person1:PERSON), | ||
(forum:FORUM)-[:HASMEMBER]->(person2:PERSON), | ||
(person1:PERSON)-[:KNOWS]->(person2:PERSON), | ||
(person1:PERSON)-[:LIKES]->(post:POST), | ||
(person2:PERSON)-[:LIKES]->(post:POST) | ||
Return count(person1); |