-
Describe the feature: Describe a specific use case for the feature: thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Have you tried |
Beta Was this translation helpful? Give feedback.
-
@YYDreamer I moved the issue to GitHub Discussions. I believe @li-boxuan is right here. You can always limit the amount of returned edges by using Also, I noticed that you are talking about super node problem here. There are plenty of discussions regarding super nodes and how to solve them. Most of the time you partition you super node to several nodes following a specific rule but that requires to checking specific business use cases. Also, about edge traversals. Many times I notice that users don't use vertex centric indices when traversing their graph. That's something I would suggest to look for when you notice that your query filters edges based on specific patterns. In addition to that, when you have a read heavy application with queries where conditions depend on adjacent vertex labels, I would suggest to think about denormalizing you edges and using vertex centric edge indices on those properties which are used in your conditions. For example, let's imagine we have a vertex label You could naturally write a query To overcome this issue you can create and enable vertex centric index like the following one:
Notice, in the example above I create only OUT index thus the index will be used for out queries only. Alternatively one could specify IN direction for index usage in reverse traversals. In case the index is required in both IN and OUT traversals, please, select BOTH. With the above index Please, check this section for more information about vertex centric indices: https://docs.janusgraph.org/index-management/index-performance/#vertex-centric-indexes |
Beta Was this translation helpful? Give feedback.
@YYDreamer I moved the issue to GitHub Discussions.
I believe @li-boxuan is right here. You can always limit the amount of returned edges by using
limit
step.Also, I noticed that you are talking about super node problem here. There are plenty of discussions regarding super nodes and how to solve them. Most of the time you partition you super node to several nodes following a specific rule but that requires to checking specific business use cases.
Also, about edge traversals. Many times I notice that users don't use vertex centric indices when traversing their graph. That's something I would suggest to look for when you notice that your query filters edges based on specific patterns. In a…