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. 1st New Job Win

1st New Job Win

Scheduled Pinned Locked Moved The Lounge
databasecareer
21 Posts 11 Posters 2 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.
  • realJSOPR realJSOP

    Nope. We simply stopped pulling inactive records. Honestly, this reduced the number of records we were pulling from 800k to 500k, and I expected the data pull to only take 4.5 hours, but for the last two days, it's only been 20 minutes, and we even verified that we did indeed pull all 500k records. I suspect that the data owners also updated their queries that give us the data, but they claim they didn't. It's weird, but I'll take the win regardless.

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    F Offline
    F Offline
    Forogar
    wrote on last edited by
    #12

    Quote:

    the last two days

    You mean, since the New Year started? Coincidence? I think not! :suss:

    - I would love to change the world, but they won’t give me the source code.

    1 Reply Last reply
    0
    • realJSOPR realJSOP

      Nope. We simply stopped pulling inactive records. Honestly, this reduced the number of records we were pulling from 800k to 500k, and I expected the data pull to only take 4.5 hours, but for the last two days, it's only been 20 minutes, and we even verified that we did indeed pull all 500k records. I suspect that the data owners also updated their queries that give us the data, but they claim they didn't. It's weird, but I'll take the win regardless.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      F Offline
      F Offline
      Fueled By Decaff
      wrote on last edited by
      #13

      Hmm, I might be tempted to check those 300K records you are no longer accessing to see if there is any null data/duplicates or any other strange data that could be causing SQL to chug along.

      1 Reply Last reply
      0
      • realJSOPR realJSOP

        Everyone seems happy (on the outside, at least). It was an onerous operation that we had taken steps to do once a week until someone complained that they needed the data refreshed every day. Me and a DBA sat down and started looking hard at what was going on, and that's when I noticed that we were pulling almost twice as many records as we needed to. I'm a hero today, but tomorrow, I'll revert back to being the FNG. Glory only lasts until the next bug surfaces. :)

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #14

        They all now need to work on their things to make it faster. How can they, even remotely, like you? :)

        "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

        1 Reply Last reply
        0
        • realJSOPR realJSOP

          Nope. We simply stopped pulling inactive records. Honestly, this reduced the number of records we were pulling from 800k to 500k, and I expected the data pull to only take 4.5 hours, but for the last two days, it's only been 20 minutes, and we even verified that we did indeed pull all 500k records. I suspect that the data owners also updated their queries that give us the data, but they claim they didn't. It's weird, but I'll take the win regardless.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

          M Offline
          M Offline
          MarkTJohnson
          wrote on last edited by
          #15

          Wonder if indices were refreshed. That has helped a bunch of our queries.

          realJSOPR 1 Reply Last reply
          0
          • M musefan

            We have a weekly report that takes 15 minutes... been running it for a while now... then the other day, suddenly, without any changes to the query, it starts consistently taking 2 seconds. Sometimes magic just happens! Although we did also get rid of Kaspersky recently, coincidence?

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

            musefan wrote:

            get rid of Kaspersky

            :thumbsup: Never trust the Russians for security software. :-\ At my old job we used Kaspersky and I had to kill it all the time because it caused my machine to be incredibly slow.

            Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

            1 Reply Last reply
            0
            • M MarkTJohnson

              Wonder if indices were refreshed. That has helped a bunch of our queries.

              realJSOPR Offline
              realJSOPR Offline
              realJSOP
              wrote on last edited by
              #17

              I could ask the dba.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

              1 Reply Last reply
              0
              • realJSOPR realJSOP

                Everyone seems happy (on the outside, at least). It was an onerous operation that we had taken steps to do once a week until someone complained that they needed the data refreshed every day. Me and a DBA sat down and started looking hard at what was going on, and that's when I noticed that we were pulling almost twice as many records as we needed to. I'm a hero today, but tomorrow, I'll revert back to being the FNG. Glory only lasts until the next bug surfaces. :)

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                F Offline
                F Offline
                Forogar
                wrote on last edited by
                #18

                I once converted a serial string of jobs that took 14.5 hours end to end on average (and was run once per day) into a single job that took 40-45 minutes. Day 1: Party! Congratulations and back-slapping all around. :-D Day 2: "Can we run this multiple times per day?" :doh: Day 3: Set it up to run hourly so data was very current. :) Day 4: The users complained that the data was often up to an hour out-of-date - despite having dealt with day-old data for several years prior. :omg: Day 5: Took all the users out the back and shot them. Hired new users. (In my mind.) :mad: Day 6: Delegated project to new guy. :cool:

                - I would love to change the world, but they won’t give me the source code.

                K 1 Reply Last reply
                0
                • realJSOPR realJSOP

                  Reduced a 7.5 hour data pull/import SQL job from 7.5 hours to 20 minutes.

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

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

                  A million years ago when I was an IT guy and DB admin we used a 4GL DB called Progress for our MRP system. I had a custom accounts payable report that ran daily (sometimes 2x a day) that took nearly an hour. I went to the annual user's conference and attended a session held by a Progress guru. I learned a crazy 4GL Progress trick that got the report to run in... ...wait for it... 12 seconds. :doh:

                  1 Reply Last reply
                  0
                  • F Forogar

                    I once converted a serial string of jobs that took 14.5 hours end to end on average (and was run once per day) into a single job that took 40-45 minutes. Day 1: Party! Congratulations and back-slapping all around. :-D Day 2: "Can we run this multiple times per day?" :doh: Day 3: Set it up to run hourly so data was very current. :) Day 4: The users complained that the data was often up to an hour out-of-date - despite having dealt with day-old data for several years prior. :omg: Day 5: Took all the users out the back and shot them. Hired new users. (In my mind.) :mad: Day 6: Delegated project to new guy. :cool:

                    - I would love to change the world, but they won’t give me the source code.

                    K Offline
                    K Offline
                    kmoorevs
                    wrote on last edited by
                    #20

                    :thumbsup: Great story! ..and one that I am currently dealing with going from a nightly scheduled task to a filesystemwatcher solution...which is working fine, but now I've got to handle the new problem of what to show the user in that 5 minute window where their datafiles are being imported/processed. :sigh: It's a certainty that they will expect it immediately and I'd rather deny access/warn than show incomplete data. I'm thinking a quick redirect to a page titled 'Impatient User Warning' should do the trick! :laugh: Can I just skip to Day 5?

                    "Go forth into the source" - Neal Morse

                    1 Reply Last reply
                    0
                    • realJSOPR realJSOP

                      Reduced a 7.5 hour data pull/import SQL job from 7.5 hours to 20 minutes.

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      J Offline
                      J Offline
                      JoeSox
                      wrote on last edited by
                      #21

                      :thumbsup::thumbsup::thumbsup: :jig: :clap:

                      Later, JoeSox “Write hard and clear about what hurts.” - Ernest Hemingway Last.fm - CPForAndroid++

                      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