cayleygraph / cayleygraph/cayley

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

Open
#889 1 comment 0 reactions 1 assignee Claimed by @dennwc View on GitHub
performance
Dominant language
Go
Stars
15.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

**Description**
When executing:
```javascript
g.V().out(predicate).is(a, b)
```
It is signifcantly slower than
```javascript
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()`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.