If you are accessing large amounts of data from an output database, you should be aware of potential inefficiencies in your program and techniques that will help to speed up your scripts.
Creating objects to hold loop counters Creating objects to hold temporary variables Using references to objects