What is the maximum number of records returned by getData method

Viewed 249

I would like to create my own connector in Google Apps Script. Is there any limitation of processing and returning number of records by getData() method?

2 Answers

There is no documented limit. To get the whole data from a sheet, you can use sheet.getDataRange().getValues(). If you get data in multiple calls like sheet.getRange('A1').getValues(), sheet.getRange('A2').getValues() and so on, it will make your script very slow and may timeout and script has 5 minute run time limit. It is advised you get the data from spreadsheet in just one call for performance reasons.

Edit: The run time limit is now updated. You can check it here

Related