Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SQL table reading/writing ...
Forum Updated to NodeBB v4.3 + New Features

SQL table reading/writing ...

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.0k 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.
  • R Offline
    R Offline
    Ritchie
    wrote on last edited by
    #1

    Hi,

    is "QSqlQuery" the fastest method to read and write a small amount of data into a SQL database.

    I will read some information on a sql database and will send back the results via ssl connection to a connected client. Also I will write sensor datas from the client into the database.

    Is QSQLQuery the best way for this ?

    Best regards
    R.

    JonBJ 1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      It's the only way to do it through the Qt framework.

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • R Ritchie

        Hi,

        is "QSqlQuery" the fastest method to read and write a small amount of data into a SQL database.

        I will read some information on a sql database and will send back the results via ssl connection to a connected client. Also I will write sensor datas from the client into the database.

        Is QSQLQuery the best way for this ?

        Best regards
        R.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @Ritchie

        Be aware that your "bottleneck" will not be the size of the "small" data packets you read/write but rather the number of distinct calls to SQL you issue. If there is anything you can do to "group"/"amalgamate" the data to reduce the number of calls that will have the biggest performance gain, though your logic/requirements may not allow you to do this.

        1 Reply Last reply
        2
        • R Offline
          R Offline
          Ritchie
          wrote on last edited by
          #4

          Thanks for this Information.
          Best regards
          R.

          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