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. The best DBA of all time

The best DBA of all time

Scheduled Pinned Locked Moved The Lounge
databasesql-servercomadobesysadmin
23 Posts 15 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.
  • R RefugeeFromSlashDot

    That's sort of like the daily backup that takes 28 hours.

    K Offline
    K Offline
    KP Lee
    wrote on last edited by
    #21

    I gave a suggestion to remove functions that produce a constant in the where clause. With an example that cut the query from 13 seconds to 30 milliseconds. The group proceeded to remove every function they could from where clauses. I asked about removing GETUTCDATE in the maintenance apps, since it didn't produce a constant value. "Since it was a daily cleanup job, the few remaining rows will be picked up the next day." That made emminent sense and since the idividual queries would run quicker, it went into production. Most of the jobs did run faster with no problem and all of them ran faster at first. Didn't pay attention to the jobs, as soon as one went over 24 hours, the next daily job didn't submit. The next job was 48 hours out of date and fairly quickly reached a running time of a week. Since the constant value query still made good sense, we analysed the queries, figured out the inefficiencies in the queries, fixed that as well. (In one case, the datetime field used to delete was indexed. Scratched my head, realized what was going on, forced the query to ignore that field for looking up records and increased loop speed 50 times.) Anyway, even good ideas can have bad consequences. The reason it worked OK with the slower query... If it ran for 16 hours, the next run only had 8 hours to fix. With daily and weekend slowdowns it remained stable.

    1 Reply Last reply
    0
    • Sander RosselS Sander Rossel

      Perhaps you've missed my story on the head of IT that couldn't log in[^]? Yeah, I definitly get that kind of stuff :laugh:

      It's an OO world.

      public class Naerling : Lazy<Person>{
      public void DoWork(){ throw new NotImplementedException(); }
      }

      D Offline
      D Offline
      Dave Kerr
      wrote on last edited by
      #22

      It was that story that reminded me and made me post!!!

      My Blog: www.dwmkerr.com My Charity: Children's Homes Nepal

      Sander RosselS 1 Reply Last reply
      0
      • D Dave Kerr

        It was that story that reminded me and made me post!!!

        My Blog: www.dwmkerr.com My Charity: Children's Homes Nepal

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #23

        That's great! :laugh:

        It's an OO world.

        public class Naerling : Lazy<Person>{
        public void DoWork(){ throw new NotImplementedException(); }
        }

        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