Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Distributed Database Maintenance

Distributed Database Maintenance

Scheduled Pinned Locked Moved Solved Brainstorm
8 Posts 5 Posters 2.3k 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by VRonin
    #1

    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

    kshegunovK JonBJ 2 Replies Last reply
    0
    • VRoninV 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

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @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

      VRoninV 1 Reply Last reply
      0
      • kshegunovK kshegunov

        @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.

        VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        @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

        kshegunovK Pablo J. RoginaP 2 Replies Last reply
        0
        • VRoninV VRonin

          @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

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          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
          0
          • VRoninV 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

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

            @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?

            VRoninV 1 Reply Last reply
            0
            • JonBJ 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?

              VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              @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
              1
              • VRoninV VRonin

                @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

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @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
                1
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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
                  1

                  • Login

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