MATCH Query not using index.
OrientDB Version: 2.2.19
Java Version: 8
OS: Centos
Expected behavior
should show that it used the unique index for _id.
Actual behavior
no index used to fetch the starting vertex.
Steps to reproduce
create a unique index on field _id on a schema (ex. channel). run the following query.
EXPLAIN MATCH {class: Channel, where: (_id="5904764211d82a05b0b5c7a8")}.outE("e_PERMISSIONS"){as: relationship} return relationship
the explain shows that no index was used.
Hi @SafwanHak
I guess the problem here is only in the EXPLAIN, probably it's just not reporting that the index is being used. The use case is quite simple, so I guess the index is correctly used
I'll check it for a fix
Thanks
Luigi
Hi @SafwanHak
I just pushed a fix for this issue on branch 2.2.x, the fix will be released with 2.2.20
Thanks
Luigi
Thanks. do you have a date for 2.2.20 release?
Safwan
On Wed, May 3, 2017 at 3:52 PM, luigidellaquila [email protected] wrote:
Closed #7387 https://github.com/orientechnologies/orientdb/issues/7387.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/orientechnologies/orientdb/issues/7387#event-1067384156, or mute the thread https://github.com/notifications/unsubscribe-auth/ABxEo-EGWxS1iuC8xEc-q1EEXpkGWEQKks5r2JTDgaJpZM4NPMJI .
Hi @SafwanHak
I don't have a specific date, but I'd say it will be out in very few days. In the meantime you can find the SNAPSHOT here
https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/3.0.0-SNAPSHOT/
Thanks
Luigi
you mean. https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/2.2.20-SNAPSHOT/, not 3.0, right?
Safwan
On Wed, May 3, 2017 at 5:32 PM, luigidellaquila [email protected] wrote:
Hi @SafwanHak https://github.com/SafwanHak
I don't have a specific date, but I'd say it will be out in very few days. In the meantime you can find the SNAPSHOT here
https://oss.sonatype.org/content/repositories/snapshots/com/ orientechnologies/orientdb-community/3.0.0-SNAPSHOT/
Thanks
Luigi
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/orientechnologies/orientdb/issues/7387#issuecomment-298964675, or mute the thread https://github.com/notifications/unsubscribe-auth/ABxEow-F6glEADOKTXW8P5wujF9hfhxQks5r2KwYgaJpZM4NPMJI .
Oh yes, sorry, I pushed the fix on both branches...
Luigi
Grazie Mille.
On Thu, May 4, 2017 at 8:42 AM, luigidellaquila [email protected] wrote:
Oh yes, sorry, I pushed the fix on both branches...
Luigi
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/orientechnologies/orientdb/issues/7387#issuecomment-299117072, or mute the thread https://github.com/notifications/unsubscribe-auth/ABxEoz5H5b28PsDZEyBjyt_WMA9Iv7oxks5r2YF1gaJpZM4NPMJI .