Which was is better...

Results 1 to 2 of 2

Thread: Which was is better...

  1. #1
    Join Date
    Dec 1969

    Default Which was is better...

    I am building a standard call center report. This report consists of several clients along the left side and several metrix along the top. I have a current working report that has a very long proceedural script that gathers all the metrix at once. Reciently I decided to rewrite it and am having a delima. Do I continue writing this huge 100+ lines of procedural code or break it up into functions for each of the metrix? <BR><BR>Something along the lines of <BR><BR>function pcntSLA(product, threshold){<BR><BR>....<BR>...<BR>}<BR><BR>even if each of the functions have to make a new data base query..<BR><BR>Which way should I go to get the best performance out of my script?

  2. #2
    Join Date
    Dec 1969

    Default RE: Which was is better...

    I would break it down into functions, at the very least it&#039;ll make the code shorter and therefore compilation slightly quicker.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts