Skip to content
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

LinkedQL + Bolt: .out().is() is slower than .has().union(.has()) #889

Open
iddan opened this issue Nov 12, 2019 · 1 comment
Open

LinkedQL + Bolt: .out().is() is slower than .has().union(.has()) #889

iddan opened this issue Nov 12, 2019 · 1 comment
Assignees
Milestone

Comments

@iddan
Copy link
Collaborator

iddan commented Nov 12, 2019

Description
When executing:

g.V().out(predicate).is(a, b)

It is signifcantly slower than

g.V().has(predicate, a).union(g.V().has(predicate, .b)

I presume it has to do with the way we use indexes for .out().is() which is not optimized like .has()

@dennwc
Copy link
Member

dennwc commented Nov 16, 2019

I think I know why it behaves that way. It currently only optimizes has with a single value. It can do better by automatically adding a union on quad indexes.

@dennwc dennwc added this to the v0.8.1 milestone Nov 16, 2019
@iddan iddan changed the title Gizmo + Bolt: .out().is() is slower than .has().union(.has()) LinkedQL + Bolt: .out().is() is slower than .has().union(.has()) Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants