-
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
Selecting RID from indexes is very slow #3278
Comments
This might be limited to the console, at least it seems faster using the HTTP SQL API. |
Right, try with explain as prefix. |
orientdb {db=WikiData}> explain select from index:ProperyIdIdx limit 1000 Profiled command '{user:#5:0,elapsed:3.559869,resultType:collection,resultSize:1000}' in 0.004000 sec(s): Profiled command '{optimizationElapsed:0,user:#5:0,elapsed:4.19173,resultType:collection,resultSize:1000}' in 0.005000 sec(s): Schema is at https://github.com/AaronSchulz/WikiDataQueryOrient/blob/master/sql/schema.sql . |
So times are comparable, right? I'm closing it. |
"explain" is fast, but without explain you can see the difference (see the initial times). It might be something in the console code that formats and displays the results. |
select key from index:ProperyIdIdx limit 1000
Takes .006 seconds
select key,rid from index:ProperyIdIdx limit 1000
Takes 7.331 seconds
select rid from index:ProperyIdIdx limit 1000
Takes 7.249 seconds
select from index:ProperyIdIdx limit 1000
Takes 7.191 seconds
The index has about ~1300 records.
The text was updated successfully, but these errors were encountered: