Reply to topic  [ 7 posts ] 
Work stuff :D 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Well, on Friday I was trying to correct the data that a report produces.

Apparently it was getting the wrong date (or something) and so the finance people didn't like it.

Anyway, this report has been notoriously slow in the past. And when I say slow I mean ridiculously slow, they used to take 5 to 6 hours to run.

Then one of my colleagues (and my manager) had a bash at it and managed to get it to run in under an hour. (The time was the same for a single item or for all items)

Well, I was getting annoyed at having to wait 45 mins to see the results of my changes so I had a look at it myself.

Now if you run the report for a specific item it takes about 5 seconds and if you run it for all items it takes about 2 minutes :D

I was very chuffed :D

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Sat Jul 17, 2010 5:50 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:14 pm
Posts: 5664
Location: Scotland
Reply with quote
are you a robot? I have never ever seen an unhappy thread from yourself! all your posts are of a positive/happy nature, I consider you a very intriguing specimen! :shock:

_________________
Image


Sat Jul 17, 2010 5:58 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 8:29 pm
Posts: 5975
Reply with quote
:? :?:

_________________
"I hadn't known there were so many idiots in the world until I started using the Internet." - Stanislaw Lem


Sat Jul 17, 2010 6:02 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 6:37 am
Posts: 6954
Location: Peebo
Reply with quote
You do realise that if you show too much initiative you'll never be promoted as you're too useful.
Still, well done there. Do you know which Muggle produced the original set-up? Sounds like they didn't know their backside from their elbow.

_________________
When they put teeth in your mouth, they spoiled a perfectly good bum.
-Billy Connolly (to a heckler)


Sat Jul 17, 2010 7:17 pm
Profile
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 11:36 pm
Posts: 3527
Location: Portsmouth
Reply with quote
Nicely done Oli. :)

Was the boss happy, or embarrassed?

_________________
Image


Sat Jul 17, 2010 9:37 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Nick wrote:
Nicely done Oli. :)

Was the boss happy, or embarrassed?

Thanks :D

My boss wasn't in so doesn't know I've done it yet :D

There are a couple of other reports (all about the same records) that I haven't done yet so I'll do those next :D

The best bit is that my boss and colleague had both come to the conclusion that a whole new table was required to hold some extra data before it was possible to improve the report any further :D

OK, I added a new index to a currently existing table but that was all and it was a fairly small addition comparatively :D

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Sat Jul 17, 2010 10:44 pm
Profile WWW
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:25 pm
Posts: 10691
Location: Bramsche
Reply with quote
Yeah, it is great, when you can come up with such optimisations.

My first job, I had to collect corporate reporting data from the business units around the world (BASIC program, 300 baud modems and a 4.33Mhz 8088 computer (or 1Ghz Z80 - the program was compiled for CP/M and MS-DOS). I managed to cut the preparation and packing time from 4 hours to under 5 minutes - by reducing the number of screen updates, instead of display each of the thousands of account lines that needed to be processed, I only output every 10, 50 then 100, each giving a significant improvement of speed. The users were a bit wary of that at first, as they couldn't see every account that was being written, but they appreciated, that they didn't have to sit for hours in front of the machine, waiting for it to finish...

My last job, we had an e-Commerce site, which was having problems, the complex query to pull out the top sellers for the home page could take up to 45 seconds to run! And that was for each user that accessed the home page! That, plus some of the shopping basket queries meant that the load-balanced 4-way cluster set-up would keel over and die with around 150 active visitors. When the PayPal newsletters used to go out, the servers and the database server would grind to a halt. Before I started, the head of e-Com would have to restart the MySQL service every couple of minutes during peak times!

I managed to optimise the query, so that it ran in under 1 second! That meant, at peak times, the load balanced set-up was able to cope with nearly 250 active sessions per server, instead of the 150 over all 4! 8-)

_________________
"Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari

Executive Producer No Agenda Show 246


Sun Jul 18, 2010 9:45 am
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.