https://docs.aws.amazon.com/neptune/latest/userguide/gremlin-traversal-tuning.html
This documentation mentions an important optimization affecting Neptune engine version 1.0.5.0 recommending a barrier()
step during a specific traversal sequence:
g.V().hasLabel('airport').
order().
by(out().count(),desc).
limit(10).
out()
Does this strictly apply only to the order().by().limit()
sequence, or would it also affect order().by().range()
?
Would placing barrier()
as the very last step of the traversal suffice, or does it need to come directly after limit()
?
If the traversal contains multiple order().by().limit()
sequences, would a single barrier()
suffice, or does each instance need it's own barrier()
? Note that I'm using these within project(...).by(__.order().by().limit()).by(__.order().by().limit())
.