QSqlQueryModel and QSqlQuery methods taking more execution time with QSQLCIPHER plugins
-
wrote on 7 Oct 2022, 11:48 last edited by
I am using QSQLCIPHER plugin for encryption for the database and previously I was using sqlite3 plugin, I Observed that the query execution with qsqlcipher plugin is taking much more time when working with QSqlQueryModel and QSqlQuery methods. So not getting what exactly happening sqlcipher will add only 10 to 15 percent extra overhead in execution time. but with QSqlQueryModelmethods (setQuery, prepare, exec) is very much
-
Lifetime Qt Championwrote on 7 Oct 2022, 18:53 last edited by SGaist 10 Jul 2022, 18:54
Hi,
You should add more information:
- SQLCipher version
- Qt version
- OS
- debug vs release ?
-
wrote on 8 Oct 2022, 09:30 last edited by
I am using QT version 5.12.9
SQLCipher version 3.32.2
OS - windows 10
build type - debug -
Did you benchmark the release build ? Debug can have a big performance impact.
-
wrote on 9 Oct 2022, 03:57 last edited by
Yes I did benchmark on release build too. but still there it is taking so much time for execution. especially QSqlQueryModel::setQuery method and sqlQuery::exec method is taking so much time.
-
Did you check the recommendations of the SQLCipher ?
-
wrote on 10 Oct 2022, 03:11 last edited by
Yes I checked that too and my code is optimized as sqlcipher recommendations
-
Did you check the performance if you use the library directly ?
-
wrote on 8 Nov 2022, 11:47 last edited by
I have worked with the qsqlcipher plugins well and gone through with the qsqlcipher plugin code and I puted some print statement in the plugin code itself then observed that the fetchNext function taking is more time, Please look into it