-
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
Slow performance when commiting transaction to SQLite encrypted file #28774
Comments
@iplusMario Is the performance significantly better when you don't use EF? |
Are you opening and closing the db connection for each transaction? That is a performance killer with sqlcipher. |
@ericsink We have connection pooling by default now, so this shouldn't be an issue in a typical app. |
Hmm, I thought we had an issue to investigate this, but I can't seem to find it. |
My theory is that sending the |
We have now tried encrypting the SQLite database with SQLitePCLRaw.bundle_zetetic 2.1.0 and the zetetic-sqlcipher-windows 4.5.2 driver.
Include provider and version information |
Confirmed. Re-sending /cc @james1301 @LauraLaura (Sorry it took so long to investigate this.) |
Thanks @bricelam, any outcome about patching 6.0? Would be a big boost 🙂 |
@james1301 We plan to bring this to 6.0, but it needs to go through the internal process and get approved first. |
@ajcvickers awesome thanks for the update. And now I have actually seen that other issue for 6.0 so apologies for me being a bit blind 🙂 |
@bricelam After your commits were merged in 6.0.11 the Database.Migrate() fails with dll error stated below.
Simple test project |
@iplusMario can you please open a new issue? |
We are currently testing encrypted SQLite and we are experiencing slow performance (about 500 ms for commiting transaction) when inserting into database.
Include provider and version information
Include provider and version information
EF Core version: 6.0
Database provider: Microsoft.EntityFrameworkCore.Sqlite.Core 6.0.8 and SQLitePCLRaw.bundle_e_sqlcipher 2.1.0
Target framework: NET Core 6.0
Operating system: Windows 10
IDE: Visual Studio 2022
Simple test project
EFCoreEncryptionTest.zip
The text was updated successfully, but these errors were encountered: