Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved sqlite3 speed performances

    Mobile and Embedded
    sqlite3 order by speed
    2
    4
    1092
    Loading More Posts
    • 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.
    • L
      LYD29 last edited by

      Hi all,

      I'm a relatively beginner in Qt development and I'm working on a Qt app which uses sqlite3 to read and write a sqlite database.
      Currently, I'm trying to improve the speed of the requests' executions. Indeed, some of them take a too long time to process.

      For example : the request "SELECT * FROM TABLE1 ORDER BY DATES DESC;" takes 1.662s to be executed by Sqliteman app while it takes 21.9s to be executed by my Qt app.
      When I add an index to this DATES column, the speed is increased via Sqliteman app (0.056s) while my Qt app takes again more than 22s.

      I don't know which information you can need to understand my problem. So, please ask me if necessary.

      Thanks in advance for helping me !

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Which size is that table ?

        How are you setting things up ?

        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 Reply Quote 0
        • L
          LYD29 last edited by

          Hi,

          The table contains almost 189000 lines and 7 columns. Nevertheless, the number of lines grows with the functioning of my machine. This machine measures some parameters frequently and add lines in this table to memorize measurements' values.
          It's one of my predecessors who created this database and wrote the code to read and write. So I don't know how to improve it.

          My Qt code is compiled for arm. I use the sqlite3 library (sqlite3.h and sqlite3.c are in the sources).

          Thanks

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            How are you querying the database with Qt ?

            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 Reply Quote 0
            • First post
              Last post