Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QSqlQueryModel and QSqlQuery methods taking more execution time with QSQLCIPHER plugins

QSqlQueryModel and QSqlQuery methods taking more execution time with QSQLCIPHER plugins

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qsqlquerymodelqsqlquerysqlcipherqsqldatabase
9 Posts 2 Posters 787 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kuldip Somwanshi
    wrote on 7 Oct 2022, 11:48 last edited by
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Oct 2022, 18:53 last edited by SGaist 10 Jul 2022, 18:54
      #2

      Hi,

      You should add more information:

      • SQLCipher version
      • Qt version
      • OS
      • debug vs release ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kuldip Somwanshi
        wrote on 8 Oct 2022, 09:30 last edited by
        #3

        I am using QT version 5.12.9
        SQLCipher version 3.32.2
        OS - windows 10
        build type - debug

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 8 Oct 2022, 18:40 last edited by
          #4

          Did you benchmark the release build ? Debug can have a big performance impact.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Kuldip Somwanshi
            wrote on 9 Oct 2022, 03:57 last edited by
            #5

            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.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 9 Oct 2022, 18:38 last edited by
              #6

              Did you check the recommendations of the SQLCipher ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • K Offline
                K Offline
                Kuldip Somwanshi
                wrote on 10 Oct 2022, 03:11 last edited by
                #7

                Yes I checked that too and my code is optimized as sqlcipher recommendations

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 10 Oct 2022, 20:15 last edited by
                  #8

                  Did you check the performance if you use the library directly ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    Kuldip Somwanshi
                    wrote on 8 Nov 2022, 11:47 last edited by
                    #9

                    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

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved