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. Which Database to use to save sensor data
QtWS25 Last Chance

Which Database to use to save sensor data

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 824 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.
  • S Offline
    S Offline
    saurabh162
    wrote on last edited by
    #1

    In my software application, I need to collect data from 64 sensors simultaneously at a frequency of 20KHz and then plot it on a graph with respect to the time axis, additionally save them in the database with the configuration of sensors I made before starting my measurement so that user can retrieve measurement data corresponding to the configuration of sensors at later point of time.
    I would be grateful if you please inform me which type of database, I can use to save sensor data with respect to time and configuration data in my application.
    According to me, saving sensor data in a relational database, for example, MySQL will be not the right choice in this case, but I would still like to know if there are any points that support using a relational database in this case.

    Thanks you !!

    jsulmJ 1 Reply Last reply
    0
    • S saurabh162

      In my software application, I need to collect data from 64 sensors simultaneously at a frequency of 20KHz and then plot it on a graph with respect to the time axis, additionally save them in the database with the configuration of sensors I made before starting my measurement so that user can retrieve measurement data corresponding to the configuration of sensors at later point of time.
      I would be grateful if you please inform me which type of database, I can use to save sensor data with respect to time and configuration data in my application.
      According to me, saving sensor data in a relational database, for example, MySQL will be not the right choice in this case, but I would still like to know if there are any points that support using a relational database in this case.

      Thanks you !!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @saurabh162 Do you need a database at all? Do you need a possibility to query data using complex queries?
      If not you could also simply write the sensor data into a file.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      2
      • jsulmJ jsulm

        @saurabh162 Do you need a database at all? Do you need a possibility to query data using complex queries?
        If not you could also simply write the sensor data into a file.

        S Offline
        S Offline
        saurabh162
        wrote on last edited by saurabh162
        #3

        @jsulm thank you very much for your quick reply.

        We need to develop an application in which the user can give the name of measurement on the GUI to load data related to the configuration of measurement and data from sensors in graphs on our GUI.

        So answers to your questions are:

        Do you need a database at all?

        I do not know. Whether this problem can be solved without a database. As there will be thousands of measurement cycles with different configurations. If I use files to save data then please inform me which file format is best suited:

        1. To save data from sensors with respect to time?
        2. To save configuration data of sensors before starting a measurement?
        3. What would be the best way to link files that have the sensor's configuration information and sensor data?

        Do you need the possibility to query data using complex queries?

        No.

        Please inform me if you need any other information.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          It really depends on how the data you receive is structured or if you will structure it yourself. If they can be properly to put in table like fashion then a SQL based database will be fine. Otherwise, you might want to check the NoSQL databases.

          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
          • S Offline
            S Offline
            saurabh162
            wrote on last edited by
            #5

            @SGaist thank you very much for your reply. I think qt does not have drivers for NoSQL databases and right now I am planning to save configuration data and graph data in text file and will put their names in SQL databases to link both of them.

            Please inform me if you do not find my decision right or see any problem with it...Thanks !!

            jsulmJ 1 Reply Last reply
            0
            • S saurabh162

              @SGaist thank you very much for your reply. I think qt does not have drivers for NoSQL databases and right now I am planning to save configuration data and graph data in text file and will put their names in SQL databases to link both of them.

              Please inform me if you do not find my decision right or see any problem with it...Thanks !!

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @saurabh162 said in Which Database to use to save sensor data:

              will put their names in SQL databases to link both of them

              Why do you need a SQL database for that? How many such links are you going to have? If not many then you can also store these links in simple files and forget about SQL databases.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7

                xml format will be a good option if database is not needed. in case database is applied later on, the xml format can easily be processed to send data into database.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  No, Qt does indeed not have any NoSQL driver bust they usually have a C++ library to use them so that should not be the main driver of your decision.

                  How fast are your data coming in ?

                  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

                  • Login

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