Mass update records with custom function

Mass update records with custom function

Hello,

I have question regarding usage of custom function to mass update records in CRM.
Here is example of code and my question is: will this custom function update 1000 records at once and what is the limit for this type of usage of updateRecord function?

  1. iterator ={1,21,41,61,81,101,121,141,161,181,201,221,241,261,281,301,321,341,361,381,401,421,441,461,481,501,521,541,561,581,601,621,641,661,681,701,721,741,761,781,801,821,841,861,881,901,921,941,961,981,1001};
  2.     for each i in iterator
  3.     {
  4.             leads_set = zoho.crm.getRecords("Leads",i , (i + 20));
  5.             for each lead in leads_set

  6.             {
  7.                   leadID=lead.get("LEADID");
  8.                   crmRsp = zoho.crm.updateRecord("Leads",input.leadID.toString(),{ "Number" : 5 });
  9.                   info crmRsp;
  10.             }
  11.       }