-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Query performance, v4 vs v5 vs v4->v5 #2023
Comments
@PeterThornton4Ing Could you send me your datafiles? You can send them to me at lbnascimento@inf.ufrgs.br |
Will do :-) |
There was a bug where indexes over @PeterThornton4Ing Given that you have an unaffected version of your datafile, you may simply keep using them. |
Excellent! Thank you very much. |
@PeterThornton4Ing It has been released. |
Excellent. I see the new build, but the NuGet package is still version 5.0.10 any ETA on an updated NuGet package? |
@PeterThornton4Ing It should be out now. |
Im seeing some really strange Query performance problems after updating to version 5:
The context is 1.5 million simple POCO objects "Item" in a collection.
The Item has a bool property "ShowInSys"
There is a related index _db.GetCollection().EnsureIndex(i => i.ShowInSys);
We query for items like this: _db.GetCollection().Find(i => i.ShowInSys)
This returns about 50 items (of the 1.5 million total)
When doing the above query in version 4.1.4 the query takes 68ms.
When upgrading an existing v4 database to v5 and doing the query it takes 68ms
When creating a new v5 database (and inserting the 1.5 mil items) the query takes 38000ms
Maybe im missing something here, but this makes no sense to me. Could someone shed some light on what is going on here?
Why in the world is a "fresh" v5 so much slower than an updated v4?
Edit: Running the same query "SELECT $ FROM Item where $.ShowIn= true" from LiteDb Studio exchibits the same problems when doing if on a upgraded v4->5 vs a clean v5 database.,
The text was updated successfully, but these errors were encountered: