https://nebula-graph.io logo
#nebula-users
Title
# nebula-users
g

Goran Cvijanovic

08/22/2022, 12:22 PM
What are indices, are those Vertices ?
k

Kasper

08/22/2022, 12:25 PM
node ids, from`Return id(v)`
g

Goran Cvijanovic

08/22/2022, 12:29 PM
Ok, so those are actually VertexID-s
k

Kasper

08/22/2022, 12:47 PM
so something simple like
MATCH (v:Post) return v(id) LIMIT 5000000
takes 5 mins for me on SNB SF100
g

Goran Cvijanovic

08/22/2022, 12:53 PM
Did you tried using Nebula native query language ? Did you tried creating index for TAG which is used for v:Post ?
❤️ 1
k

Kasper

08/22/2022, 12:58 PM
i haven't, will try these, thanks!
w

wey

08/24/2022, 4:08 AM
Yes, as Goran suggested, after creating an index on TAG: Post, you could do
LOOKUP ON Post YIELD id(vertex) | LIMIT 5000000
About index, please refer to docs also, i had a blog on this, too: https://siwei.io/en/nebula-index-explained/
5 Views