Re: Streaming Expressions shortestPath

2018-01-14 Thread Karthik Ramachandran
Joel, Should I create a JIRA for making shortestPath return stream of tuples? On Sun, Jan 14, 2018 at 11:52 PM, Karthik Ramachandran wrote: > Joel, > Thanks, I did try using cartesianProduct then fetch, it is working as > excepted. For my dataset has only 5 or 6 level for that shortestPath >

Re: Streaming Expressions shortestPath

2018-01-14 Thread Karthik Ramachandran
Joel, Thanks, I did try using cartesianProduct then fetch, it is working as excepted. For my dataset has only 5 or 6 level for that shortestPath response time is ~5 sec and with cartesianProduct and fetch I am getting ~6.5 sec. Is there any other way to achieve this? For my use case graph query

Re: Streaming Expressions shortestPath

2018-01-14 Thread Joel Bernstein
Actually I think you can achieve what you're looking for by using the cartesianProduct expression around the shortest expression. The construct would look like this: fetch(cartesianProduct(shortesPath())) The link below describes how the cartesianProduct expression works: https://lucene.apache.or

Re: Streaming Expressions shortestPath

2018-01-14 Thread Joel Bernstein
The shortestPath returns a list of node id's, and fetch expects a stream of tuples. So they are not compatible currently. It think makes sense to change shortestPath to return a stream of tuples so it can work with fetch and other expressions. Are you getting good performance with the shortestPath