Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. sqlite3 speed performances

sqlite3 speed performances

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
sqlite3order byspeed
4 Posts 2 Posters 1.5k 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.
  • L Offline
    L Offline
    LYD29
    wrote on 20 Jan 2016, 14:26 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Jan 2016, 22:37 last edited by
      #2

      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
      0
      • L Offline
        L Offline
        LYD29
        wrote on 21 Jan 2016, 07:21 last edited by
        #3

        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
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 21 Jan 2016, 21:18 last edited by
          #4

          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
          0

          3/4

          21 Jan 2016, 07:21

          • Login

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