13

We did retrieve the whole list 20 lines ago, didn't we?
Well, who cares... Let's retrieve it again IN A LOOP, im EACH ITERATION.
and then for good measure lets make another query for each item, each time we retrieve the list. Why not?

I have to make an effort not to swear right now. I have been asked to optimize a particular oiece of code...

Ffs

Comments
  • 1
    well looks like you found a simple spot to start
  • 1
    @kleopi it probably is only the tip of the iceberg.
  • 0
    This is how I feel when I see string concatenation.

    "Let's go though each item" + " AGAIN"
Add Comment