-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Microsoft.Data.Sqlite: Performance Testing #13829
Comments
@smitpatel How much work would it be run the EF perf tests using the SQLite provider? |
It should be easy as changing provider registration |
That's probably sufficient to catch significant regressions. Filed #9681. We should keep this on the backlog to actually optimize it someday. |
RE: Performance There is missing low-level layer that repeats and publicly exposes SQLite API in a "safe as in .NET's unsafe" manner, i.e. pointers, span, etc. wrapped as safe handles, but API is not crafted for ADO.NET (as of now) but allows for low-level fast access without Simple "SELECT ?X;" query is 2.3x faster as prepared one with binding As for connection pooling and automating re-creation of prepared statements (#518) in the current design, it all could be done at application level via some generic |
@buybackoff It sounds like you're looking for the SQLitePCL.raw API. We build on top of this, and you can always drop down to it using SqliteConnection.Handle or SqliteDataReader.Handle. |
We can probably close this issue. I think our biggest wins will come from things we're tracking in other issues:
|
While we've been conscious of performance during development, we've also avoided making any (premature) optimizations that would compromise the simplicity of the code base.
It would be good to do some profiling and see if there are any easy wins.
Even if we don't make any improvements, it would also be good to establish a baseline so regressions an be avoided in the future.
The text was updated successfully, but these errors were encountered: