Comments (5)
is this OK?
ID | Type | Unique | Sparse | Extras | Selectivity Est. | Fields | Stored Values | Name | Action |
---|---|---|---|---|---|---|---|---|---|
0 | primary | true | false | 100.00% | _key | primary | |||
28576209 | persistent | false | false | deduplicate: false, estimates: true, cacheEnabled: false | 0.01% | referential | family_without_author, genus_without_author | idx_1798343241501769728 | |
14861033977 | persistent | true | false | deduplicate: false, estimates: true, cacheEnabled: false | 100.00% | referential, species | idx_1726113601910996992 |
from arangodb.
Thanks for reporting this issue.
Currently the optimizer will pick indexes based on how many attributes of the FILTER
/ SORT
conditions are covered by an index, how selective an index is, and how many attributes it covers.
Unfortunately the stored values of an index are currently not taken into account during index selection. The same is true for attributes of documents that are used outside of FILTER
/ SORT
conditions, which may be covered by indexes as well.
Right now the only workaround in this case is to manually add an index hint to the query as you did. Longer term, the optimizer will need to be changed so that it will also take into account which attributes of the collection/indexes are using by the query besides in the FILTER
/ SORT
conditions.
from arangodb.
I'm turning this to a feature request, since we should eventually learn how to get this working without index hints.
from arangodb.
Please add the index definitions in question as well.
from arangodb.
Hi @jsteemann
OK, thanks for those clarifications.
from arangodb.
Related Issues (20)
- aardvark: display of "info" tab data is very slow with v3.12
- Add a way to persist the webui-Graph settings including start vertex HOT 4
- A while after upgrade to v3.12.0, unable to create documents: "Corruption: Compaction sees out-of-order keys" HOT 11
- 3.12 webui fails soon after login
- Why does a Graph sometimes look mixed up and sometimes it's normal again?
- arangodump fails to authenticate with '@@' in the password HOT 4
- Support for Loading Databases from URL Path or Embedded Storage Mode HOT 5
- Feature Request: Seperate query from data for easier and safer operations HOT 3
- How to listen to changes in Arango Collection HOT 1
- RocksDB encountered a background error during a compaction operation: HOT 2
- GraphAR export / import
- Render large graph - rendering bug - select graph traversal order
- Fedora 40 fatal error when login HOT 4
- Update leader election failed. error="context deadline exceeded": Deployment Using the ArangoDB Starter in Docker
- Primary Sort ArangoSearch is not flexible, What's other way do with sort in ArangoSearch HOT 18
- Documentation conflict. Is Active Failover mode deprecated? HOT 2
- ArangoSearch view: sort after pagination breaks view performance HOT 3
- InvalidImageName HOT 2
- How to join arangodb community slack channel? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arangodb.