-
-
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
Add batch query support for drop step [tp-tests] #4456
Add batch query support for drop step [tp-tests] #4456
Conversation
476f92e
to
1c7d543
Compare
Currently I'm stuck on the following two TinkerPop tests:
The first test checks that TinkerPop tests for inmemory database can be triggered with:
|
One of the observations is that if I change the default barrier step size from the default |
I noticed, I am not sure if it is related, but you might have missed adding Line 40 in a2e3521
|
|
After a bit of debugging I found the root cause of the problem. The fix should be a simple one and I will add a separate test case with |
Huh. Seems I was a bit wrong. If I fix that |
Seems I'm missing how If that is confirmed to be the intended behavior then I will try to think about a bit different solution. |
One of the potential solutions is to make out own |
Both TinkerPop PRs are now merged (apache/tinkerpop#2612 and apache/tinkerpop#2609). This will allow us to extend
Now we need to wait for TinkerPop 3.7.3 to proceed without doing major hacks. |
72db163
to
7429b5f
Compare
The PR is now ready for the review. All tests passed as can be seen from my branch (here). Notes:
|
- Reuse multi-query optimization for TinkerPop DropStep - Change restriction on eligible multi-query traversals and allow multi-query optimizations to be used for queries with steps which contain drop() step Signed-off-by: Oleksandr Porunov <[email protected]>
7429b5f
to
72e2427
Compare
@ntisseyre let me know if you want to review it or I will merge this PR by following lazy consensus |
Let's merge, thanks @porunov ! |
DropStep
drop()
stepBenchmarks:
Conclusion: same as with direct usage of multi-query the usage of Gremlin
drop()
step benefits from re-using multi-query capabilities. Performance ofdrop
query processing improved more than 13 times.Related apache/tinkerpop#2609
Related apache/tinkerpop#2612
Thank you for contributing to JanusGraph!
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
master
)?For code changes:
For documentation related changes: