This is not really a SQL question. However what I do know is this method
puts way more strain on your server than other methods. I doubt it will
slow your program down signifiantly, depending on the response time of your
Is it not possible to grab all of the information at once and store it
in in memory within the program?
I don't have experience in python but I would think this should be