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

[Question] Indexing in/out edges in OrientDB 3.0.x #8765

Closed
andreyvk opened this issue Feb 13, 2019 · 5 comments
Closed

[Question] Indexing in/out edges in OrientDB 3.0.x #8765

andreyvk opened this issue Feb 13, 2019 · 5 comments
Assignees
Labels
Milestone

Comments

@andreyvk
Copy link

OrientDB Version: 3.0

Hi,

Is it still possible to index in/out attributes in edges?

I have created an in LINK attribute on a specific edge that we have. However, querying that class of edges did not seem to gain me any speed. Is there anything that I am doing wrong here?

create index has_a.in on has_a (in) notunique
select from has_a where in = #125:1443671
@andreyvk andreyvk changed the title [Question] Indexing in/out edges [Question] Indexing in/out edges in OrientDB 3.0.x Feb 13, 2019
@luigidellaquila
Copy link
Member

Hi @andreyvk

I'd say it should work fine, it's just a normal property (if it doesn't, it's definitely a bug).
I'm adding it to my backlog, I'll try to look into it soon

Thanks

Luigi

@luigidellaquila luigidellaquila self-assigned this Feb 13, 2019
@luigidellaquila
Copy link
Member

in the meantime, could you please run an EXPLAIN of the query?

Thanks

Luigi

@andreyvk
Copy link
Author

hi @luigidellaquila ,

+ FETCH FROM CLASS has_a
  + FETCH FROM CLUSTER 130 ASC
  + FETCH NEW RECORDS FROM CURRENT TRANSACTION SCOPE (if any)
+ FILTER ITEMS WHERE 
  in = #125:1443671

@luigidellaquila
Copy link
Member

Oh yes, it's not using the index...

@luigidellaquila
Copy link
Member

Hi @andreyvk

I found and fixed the problem, the fix will be released with next v 3.0.16

Thanks

Luigi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants