-
Notifications
You must be signed in to change notification settings - Fork 871
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
Huge fetchingFromTargetElapsed #3959
Comments
Hi, but I don't get it. It could just look at the first element in the index and see that the rid are different, why does it need to iterate over all entries? Couldn't it just retrieve the first one? or by batch of a few entries? How is it different when not loading from the index but from Article directly, why is it fast in this case? |
How could I solve this simple use case, get the first element sorted by date with the different rid condition?, other dbs like mongo can give me this result in 5ms or less |
BTW, I don't say it is a bug, but something which should be improved in the future if possible. |
Example in Mongo with just a index on publishDate on the same "cluster" would be I used canonicalUrl here to simulate @Rid <> took 4ms the first time and 1ms on subsequent queries |
I think you are right let me fix it . |
It is already fixed in 2.1 there is distribution to test https://www.dropbox.com/s/xs2w59sncv9ln4m/orientdb-community-2.1-SNAPSHOT-distribution.zip?dl=0 we will provide official release candidate during couple of days. |
OrientDB v.2.0.7
Configuration: 2GB Heap, 3GB Disk Cache AMD-FX 8150 8 cores, SSD drive
One cluster called Article contains around 500 000 records
Getting one record is reasonably fast:
Now I I created an index on a date field called publishDate, the same query is really slow while it evaluates 1 record, the fetching time is huge, and I can run the query several times it does not go down.
The text was updated successfully, but these errors were encountered: