Qt Forum

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

    Solved Distributed Database Maintenance

    Brainstorm
    5
    8
    1796
    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.
    • V
      VRonin last edited by VRonin

      We currently have a centralised (MS SQL Server) database and everything is fine, unfortunately we are now required to "distribute the db" at the end machines (basically this is the equivalent of switching from svn to git but with dbs)

      Since I don't want to to pay 60 licenses, I was thinking of going with postgre

      do you know if it's possible/easy to maintain the structure of it? e.g. if I write a new stored procedure, is it easy/possible to just replicate it on all other machines in a batch script?

      To be clear I would not need to sync the data inside the dbs, only its structures and automations

      "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

      kshegunov JonB 2 Replies Last reply Reply Quote 0
      • kshegunov
        kshegunov Moderators @VRonin last edited by

        @VRonin said in Distributed Database Maintenance:

        I was thinking of going with postgre

        Any particular reason for postgre? I'd usually use sqlite if I need a local (standalone) database.

        e.g. if I write a new stored procedure, is it easy/possible to just replicate it on all other machines in a batch script?

        I think there's replication for postgre, however I have never used it. On the bright side it should be enough to meet your requirements.

        Read and abide by the Qt Code of Conduct

        V 1 Reply Last reply Reply Quote 0
        • V
          VRonin @kshegunov last edited by

          @kshegunov said in Distributed Database Maintenance:

          Any particular reason for postgre?

          I'd need to have some automation on the DB side (stored procedures, triggers, etc) that's why I was thinking postgre

          "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

          kshegunov Pablo J. Rogina 2 Replies Last reply Reply Quote 0
          • kshegunov
            kshegunov Moderators @VRonin last edited by

            You could in principle wrap your own, however I advise reading first on what postgre provides out of the box.

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply Reply Quote 0
            • JonB
              JonB @VRonin last edited by JonB

              @VRonin
              I have no idea exactly what you are intending to do, but are you aware that if you can use MS SQL Server Express for whatever it is you want to distribute then the licences are free, not paid for?

              V 1 Reply Last reply Reply Quote 0
              • V
                VRonin @JonB last edited by

                @JonB said in Distributed Database Maintenance:

                if you can use MS SQL Server Express

                The 10GB size limit is stringent unfortunately

                "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 Reply Quote 1
                • Pablo J. Rogina
                  Pablo J. Rogina @VRonin last edited by

                  @VRonin it looks like you may perhaps want to look at schema cloning in Postgresql.

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

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

                    Hi,

                    This PostgreSQL wiki page about replication and clustering might be a good starting point.

                    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 1
                    • First post
                      Last post