title: function consumption optimization in python
body: <p>I have a function that receives a list of integers and what each integer does is build a json, consume some api, do validations and then insert it into a database. But there is a problem, with a list of 2 values the function takes seconds but with a list of 200 values it takes minutes more than 8 minutes, is it possible to optimize that time by sending that amount of values? , it is possible to send a series of values so that the function does its job and at the same time send another amount of values and that the function does its job and thus, simultaneously send, for example, 50 values to the function and then send other 50 to the same function at the same time to optimize time? or how would be the ideal way to optimize it</p>