pietermartin / sqlg

TinkerPop graph over sql
MIT License
246 stars 51 forks source link

Optimize `project` #352

Open pietermartin opened 5 years ago

pietermartin commented 5 years ago

The example given via the mailing list is,

g.V().hasLabel('person').as('p').order().by('familyName').out('persona').as('personas').out('practicesAt').as('practices').select('rhp').range(2,3);

g.V().hasLabel('person').as('p').order().by('familyName').out('persona').as('personas').out('practicesAt').as('practices').select('rhp').project('rhp').by().range(2,3)

The second gremlin looses the range optimization.