我有一个WebApp,它发送vía google.script.run.withFailureHanlder(data).withSuccesHandler(data).someFunction(data)一些属性,以筛选和检索数据从电子表格中的驱动器。例如
主机端
google.script.run.withSuccesHandler(e => {
console.log(e);
}).someFunction(data);Google Apps服务器端:
function someFunction(data){
let book = SpreadsheetApp.openByUrl(url).getSheetByName(data.name);
let info = book.getDataRange().getDisplayValues().filter(x => {
return new Date(data.start) > new Date(x[0]);
});
return result;
}这些电子表格由多个人同时查阅。一开始它进行得很顺利,但现在数据增长了很多,并且由于数据量的原因,查询变得很慢。
有没有办法在不影响其他人同时查询的情况下优化这些查询?
https://stackoverflow.com/questions/69148549
复制相似问题