-
Notifications
You must be signed in to change notification settings - Fork 872
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
Reusue index sorting capabilities in ORDER BY clause processing [moved] #765
Comments
@lvca Looks like this issue isn't fixed. I've got structure from #1537 and tryed execute query:
Why so slow? |
Mhmh, can you rather try this? select from channel where id > 2 and id < 304444 order by id limit 10 |
|
I've tryed orientdb-1.5.0-20130625.170746-8-distribution.zip, same behaviour occurs. Should I open new ticket or you will reopen this? |
Can you retry with latest snapshot? Try this: select from channel where id between 3 and 304443 order by id limit 10 If nothing changes assure you've an index: explain select from channel where id between 3 and 304443 order by id limit 10 |
|
The index hasn't been used. Can you execute: orientdb> create index Channel.id unique Then retry it. |
|
So for strange reason the index isn't used. Is the order by or limit? Please can you try: explain select from channel where id between 3 and 304443 limit 10 and explain select from channel where id between 3 and 304443 order by id |
I cann't explain 2nd query - got out of memory exception.
|
Guys never use approach "create index Channel.id unique" to create index this syntax deprecated years ago. I will check data structure but reason seems that index was not created properly. |
This is not the first time I see this kind of advice. Sorry for off-topic. |
Deprecating an API doesn't mean it should be broken, so it's a bug anyway. @Laa is checking if this is the problem. |
Yeah that is actually sql engine issue not storage level , but lets check it. |
I tried on 2.1-SNAPSHOT Profiled command '{documentReads:8,fullySortedByIndex:true,documentAnalyzedCompatibleClass:8,recordReads:8,fetchingFromTargetElapsed:1,indexIsUsedInOrderBy:true {"@type":"d","@Version":0,"documentReads":8,"fullySortedByIndex":true,"documentAnalyzedCompatibleClass":8,"recordReads":8,"fetchingFromTargetElapsed":1,"indexIs So as you can see indexes are used. I close this issue as invalid. |
This is Issue 765 moved from a Google Code project.
Added by 2012-03-25T08:07:32.000Z by lomakin....@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Medium, v1.3.0
Original description
The text was updated successfully, but these errors were encountered: