I have requests for information gathering at the service. One request from the client in a loop makes 1000 calls to the database. There is no possibility to merge all small requests into one big one.
All this happens like this:
rows = [] for receiver in receivers: rows.append(db_connection.connection('mybd').select(query, [begin, end, receiver])) Is there any easy way to do a few DB connections and parallelize queries?