Sandeep
08/16/2022, 11:36 AMwey
08/16/2022, 11:51 AMSandeep
08/16/2022, 12:06 PMwey
08/17/2022, 7:50 AMmatch ()-[e:follow|:serve]->() return e limit 100
or
match (v:player) return v limit 10
Where we put all edge types and tags where it could scan edges with limit/sample pushdown.
Or if we have created indexes on any tag or edge, queries like
when there is index on tag: player
match (v:player)-[e:follow|:serve]->(v1) return v,e,v1
To provide more context on my query: I’m using Nebula studio and I need all the available nodes and edges to be displayed as connected graph representationLet’s take an example of basketballplayer dataset • ref: https://docs.nebula-graph.io/3.2.0/3.ngql-guide/14.native-index-statements/1.create-native-index/ • ref: https://docs.nebula-graph.io/3.2.0/3.ngql-guide/14.native-index-statements/4.rebuild-native-index/
CREATE TAG INDEX IF NOT EXISTS player_index_1 on player(name(10), age);
REBUILD TAG INDEX player_index_1;
SHOW TAG INDEX STATUS;
After indexes were rebuilt, then this query will give us all player nodes and its outgoing connected nodes
match (v:player)-[e:follow|:serve]->(v1) return v,e,v1
Sandeep
08/30/2022, 10:59 PM