You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIRC JanusGraph always fetches the whole edge (column + value) even if you only need the count (in which case neither column nor value is really needed), or you only need edge id (in which case only column is needed).
There are two scenarios:
neither column nor value is needed. An example would be g.V(v).bothE().count(). Note that g.V(v).outE().count() does need "column" to retrieve direction info.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
IIRC JanusGraph always fetches the whole edge (column + value) even if you only need the count (in which case neither column nor value is really needed), or you only need edge id (in which case only column is needed).
There are two scenarios:
g.V(v).bothE().count()
. Note thatg.V(v).outE().count()
does need "column" to retrieve direction info.g.V(v).bothE().id()
. See https://docs.janusgraph.org/advanced-topics/data-model/#individual-edge-layout on what info is stored in "column".Inspired by https://groups.google.com/g/janusgraph-users/c/tFFI9ApCr-o/m/01gPsHECCQAJ
Beta Was this translation helpful? Give feedback.
All reactions