429 - Too Many Requests
I'm receiving a "Too many requests" erros message every time I execute the code below
//function to be executed after the wait time 
 function update(id){ 
     update_pergunta.execute({parameters: {"_id": id}, 
                                                                body: {"opcaoEscolhida" : 'ok'} }); 
 }
for(var i=0; i<data.length; i++){ 
     setTimeout(update(data._id), 5000); 
 } 
 The wait amount time between each loop is set to 5 second but it still causing the failure. 
 Is there a minimun amount of time to wait between each db call?