-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 155: Updated JanusGraphStepStrategy to fold hasId steps into JanusGraphStep #159
Conversation
Pushed another commit that refactors the |
This query throws an exception:
Traversal strategy seems ok
The same query works on TinkerGraph with TP 3.2.3, and on JanusGraph (with the WARN) before applying this PR. |
Good catch, I was folding in HasContainers too aggressively. Found this other issue though which looks like it's occurring straight off of master. I'll see if I can fix as part of this ticket.
|
5b8edc0
to
8b6bd6e
Compare
Committer of one or more commits is not listed as a CLA signer, either individual or as a member of an organization. |
* hasId folded into JanusGraphStep to prevent full scan * Refactored JanusGraphStepStrategyTest to use TinkerPop strategy testing approach
8b6bd6e
to
49e3bde
Compare
Pushed a fix so that foldId only folds id lookups and foldHasContainers handles other predicates. That previous issue I noted is actually expected behavior given that the query uses the infix notation of the 'OrStep' so no changes were required. I did find cases where further predicate folding should occur but entered that as issue #163. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening up the other issue.
The latest push looks good to me.
VOTE: +1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, i like the incremental improvement on existing code you do as well.
@twilmes Sorry I know this PR is merged but could you explain a little on the refactoring of Before this update I'm interested because one of the issues in updating to TinkerPop 3.2.4 had been test errors/failures in Update: I am having ProfileTest issues with 3.2.4 elsewhere so this question is moot on that basis. Still curious to make sure nothing was lost in |
Hi is there any work happening regarding a Web interface for JanusGraph |
@NkululekoThangelane Gremlin Server provides a web service for executing queries. But if you can post your question on the user list or chat room you might get more information on this (or other options). |
Issue 155: Updated JanusGraphStepStrategy to fold hasId steps into JanusGraphStep
Issue 155: Updated JanusGraphStepStrategy to fold hasId steps into JanusGraphStep
This PR updates the
JanusGraphStepStrategy
to foldhasId
steps intoJanusGraphStep
. This was causing issues with bulk loading via theBulkLoaderVertexProgram
. HasIdStep was not folded in so full graph scans were being triggered on id lookups. This did not effect traversals of the formg.V(id)
, justg.V().hasId(id)
.I made a few other small updates as part of this. First, it appeared that
JanusGraphStepStrategyTest
had some spurious annotations on it that were causing it to not run. I removed those so it will be run now and added in a test case for hasId folding. I also removed unnecessarypublics
from theHasStepFolder
interface.