How to iterate over all records?

How to iterate over all records?

I need to iterate over all records in a module (4,500).

Is this still the best way:
lst_iterator = {0,1,2,3, etc....};

{

records = zoho.crm.getRecords(moduleName,iterator, 200);
for each item in records
{
// Do something
}
}