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
Skiplists Index in 3.0.8 #2086
Comments
From the above output it looks like the skiplist index is sparse, meaning that |
Could this be related to #2081? |
@Simran-B No. The issues are not the same. This issue is about sparse index. And the property My issue #2081 is only about optimizer and reverse skiplist index. |
@Simran-B : I briefly looked into this, and it seems the root cause for this issue is different. |
@jsteemann so we would need an optimizer rule that recognizes the filter condition is |
The sub-condition |
3.1 can now use a sparse index for conditions such as |
ArangoDB 3.1 has been released. Please note that the download urls and repositories have changed slightly. Download or see Release Notes for details. |
This is what we’re seeing when evaluating a skiplist index on 3.0.8:
Query string:
FOR hs in Host_Session
FILTER hs.end_time > "2016-10-05T00:51:16.780137Z"
RETURN hs
Execution plan:
Id NodeType Est. Comment
1 SingletonNode 1 * ROOT
6 IndexNode 23035 - FOR hs IN Host_Session /* skiplist index scan */
5 ReturnNode 23035 - RETURN hs
Indexes used:
By Type Collection Unique Sparse Selectivity Fields Ranges
6 skiplist Host_Session false true n/a
end_time
Optimization rules applied:
Id RuleName
1 use-indexes
2 remove-filter-covered-by-index
But when I invert the ‘greater-than’ operator to ‘less-than’, the index is no longer used:
Query string:
FOR hs in Host_Session
FILTER hs.end_time < "2016-10-05T00:51:16.780137Z"
RETURN hs
Execution plan:
Id NodeType Est. Comment
1 SingletonNode 1 * ROOT
2 EnumerateCollectionNode 46071 - FOR hs IN Host_Session /* full collection scan /
3 CalculationNode 46071 - LET #1 = (hs.
end_time
< "2016-10-05T00:51:16.780137Z") / simple expression / / collections used: hs : Host_Session */4 FilterNode 46071 - FILTER #1
5 ReturnNode 46071 - RETURN hs
Indexes used:
none
Optimization rules applied:
None
The text was updated successfully, but these errors were encountered: