in reply to An Array Without and Index
Unless you made some changes to the array of addresses, it should be possible to fetch the adresses and their IDs in one select statement. That will really speed-up your program.
When using databases, it is my experience that it is almost always "best" (= faster or less memory use or easier) to let the database do all the heavy lifting and only reserve the really difficult parts (like formatting or calculating or transforming the data) for your program.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|