Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. how much do you have?

how much do you have?

Scheduled Pinned Locked Moved The Lounge
databasehelpquestion
32 Posts 19 Posters 0 Views 1 Watching
  • 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.
  • Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #1

    I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    S L M Z C 17 Replies Last reply
    0
    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

      I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

      S Offline
      S Offline
      Slacker007
      wrote on last edited by
      #2

      We hardly use triggers at all. Interesting that you have more than 5. :doh:

      1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        0 triggers on 0 tables (NaN%)

        Kornfeld Eliyahu PeterK 1 Reply Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

          M Offline
          M Offline
          megaadam
          wrote on last edited by
          #4

          You obviously need one table per trigger to keep track of them. Then add a trigger for each table if any trigger changes. FTFY.

          ... such stuff as dreams are made on

          Kornfeld Eliyahu PeterK 1 Reply Last reply
          0
          • L Lost User

            0 triggers on 0 tables (NaN%)

            Kornfeld Eliyahu PeterK Offline
            Kornfeld Eliyahu PeterK Offline
            Kornfeld Eliyahu Peter
            wrote on last edited by
            #5

            Isn't it 100%? :-)

            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

            "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

            L 1 Reply Last reply
            0
            • M megaadam

              You obviously need one table per trigger to keep track of them. Then add a trigger for each table if any trigger changes. FTFY.

              ... such stuff as dreams are made on

              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu Peter
              wrote on last edited by
              #6

              Actually some of the triggers are there to log data changes (on important tables)... Others are for data integrity... And others are for sync with externals...

              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              P 1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                Isn't it 100%? :-)

                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Yes but it's also 42%, and 9001%, etc..

                1 Reply Last reply
                0
                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                  I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                  Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                  Z Offline
                  Z Offline
                  ZurdoDev
                  wrote on last edited by
                  #8

                  Kornfeld Eliyahu Peter wrote:

                  (~23%)

                  We got you beat. 247 triggers on 741 tables, exactly 1/3, although not intentional.

                  There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.

                  1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    I avoid them as triggers too easily lend themselves to database-vendor specific code.

                    Installing Signature... Do not switch off your computer.

                    1 Reply Last reply
                    0
                    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                      Actually some of the triggers are there to log data changes (on important tables)... Others are for data integrity... And others are for sync with externals...

                      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                      P Offline
                      P Offline
                      Pualee
                      wrote on last edited by
                      #10

                      I'd start looking for a new job before the house of cards falls down.

                      1 Reply Last reply
                      0
                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                        I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                        C Offline
                        C Offline
                        CodeWraith
                        wrote on last edited by
                        #11

                        My former bosses have about 10 - 15 triggers on each and every table, some of them thousands of lines long. A nightmare. Especially after that experience: 0.0 triggers per table and not a single trigger more.

                        I have lived with several Zen masters - all of them were cats.

                        Kornfeld Eliyahu PeterK M S 3 Replies Last reply
                        0
                        • C CodeWraith

                          My former bosses have about 10 - 15 triggers on each and every table, some of them thousands of lines long. A nightmare. Especially after that experience: 0.0 triggers per table and not a single trigger more.

                          I have lived with several Zen masters - all of them were cats.

                          Kornfeld Eliyahu PeterK Offline
                          Kornfeld Eliyahu PeterK Offline
                          Kornfeld Eliyahu Peter
                          wrote on last edited by
                          #12

                          That sounds awful... Our triggers are short (sometimes 2-3 triggers on the same event, just because they all do something else)...

                          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                          C 1 Reply Last reply
                          0
                          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                            That sounds awful... Our triggers are short (sometimes 2-3 triggers on the same event, just because they all do something else)...

                            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                            C Offline
                            C Offline
                            CodeWraith
                            wrote on last edited by
                            #13

                            The major part of the application logic took place in those triggers. Guess why I run out of job interviews when I hear 'Access' or ' Former Acess project that has ben ported to xxx'.

                            I have lived with several Zen masters - all of them were cats.

                            M 1 Reply Last reply
                            0
                            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                              I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                              abmvA Offline
                              abmvA Offline
                              abmv
                              wrote on last edited by
                              #14

                              Lotta time I see...

                              Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

                              We are in the beginning of a mass extinction. - Greta Thunberg

                              Kornfeld Eliyahu PeterK 1 Reply Last reply
                              0
                              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                D Offline
                                D Offline
                                Dave Kreskowiak
                                wrote on last edited by
                                #15

                                I've used 2 in my entire 32 years of doing this crap.

                                System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject

                                Click this: Asking questions is a skill. Seriously, do it.
                                Dave Kreskowiak

                                1 Reply Last reply
                                0
                                • C CodeWraith

                                  My former bosses have about 10 - 15 triggers on each and every table, some of them thousands of lines long. A nightmare. Especially after that experience: 0.0 triggers per table and not a single trigger more.

                                  I have lived with several Zen masters - all of them were cats.

                                  M Offline
                                  M Offline
                                  megaadam
                                  wrote on last edited by
                                  #16

                                  Sounds like a bunch of trigger happy bosses :suss:

                                  ... such stuff as dreams are made on

                                  1 Reply Last reply
                                  0
                                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                    I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                                    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                    R Offline
                                    R Offline
                                    R Giskard Reventlov
                                    wrote on last edited by
                                    #17

                                    Zero. Who needs 'em, eh?

                                    1 Reply Last reply
                                    0
                                    • abmvA abmv

                                      Lotta time I see...

                                      Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

                                      Kornfeld Eliyahu PeterK Offline
                                      Kornfeld Eliyahu PeterK Offline
                                      Kornfeld Eliyahu Peter
                                      wrote on last edited by
                                      #18

                                      Working on a review of the DB design to suggest improvements...

                                      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                                      abmvA 1 Reply Last reply
                                      0
                                      • C CodeWraith

                                        My former bosses have about 10 - 15 triggers on each and every table, some of them thousands of lines long. A nightmare. Especially after that experience: 0.0 triggers per table and not a single trigger more.

                                        I have lived with several Zen masters - all of them were cats.

                                        S Offline
                                        S Offline
                                        Slacker007
                                        wrote on last edited by
                                        #19

                                        CodeWraith wrote:

                                        My former bosses

                                        Database guys in charge of application development? Sounds like it to me.

                                        C 1 Reply Last reply
                                        0
                                        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                          I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                                          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                          P Offline
                                          P Offline
                                          PIEBALDconsult
                                          wrote on last edited by
                                          #20

                                          Zero. Though I may have written one about ten years ago. Only as a convenience for debugging. It was not vital to the system.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups