[英]BigQuery: Resources exceeded - Google Sheets service overloaded
I have a Google Spreadsheets with data connected to a Data Studio Panel.我有一个 Google 电子表格,其中的数据已连接到 Data Studio 面板。 I'm using the following data flow to get the data:
我正在使用以下数据流来获取数据:
Google SpreadSheets --> BigQuery External Table --> View To the External Table --> Data Studio (Updated every 10 minutes) Google SpreadSheets --> BigQuery 外部表 --> 查看到外部表 --> Data Studio(每 10 分钟更新一次)
But for some reason that I don't know, sometimes, when executing a select on the BigQuery External Table I get the following error:但出于某种我不知道的原因,有时,在 BigQuery 外部表上执行 select 时,我会收到以下错误:
Resources exceeded during query execution: Google Sheets service overloaded for spreadsheet id:XXX查询执行期间超出资源:电子表格 ID 的 Google 表格服务超载:XXX
The Google SpreadSheet has only 1500x10 Columns, which I think is pretty small. Google SpreadSheet 只有 1500x10 列,我认为这很小。 Also, there are about 6 users.
此外,大约有 6 个用户。
What can cause that error?什么会导致该错误? Any idea about how to solve this?
关于如何解决这个问题的任何想法?
Thanks谢谢
The Google documentation has information about this error: Google文档包含有关此错误的信息:
A BigQuery query can overload Sheets, resulting in an error like Resources exceeded during query execution: Google Sheets service overloaded.
BigQuery 查询可能会使表格过载,从而导致错误,例如查询执行期间超出资源:Google 表格服务过载。 Consider simplifying your spreadsheet;
考虑简化电子表格; for example, by minimizing the use of formulas.
例如,通过尽量减少公式的使用。
It seems that along with size of the Sheet, the "complexity" also matters.似乎随着工作表的大小,“复杂性”也很重要。 We cannot know how complex is your spreadsheet without seeing it but consider reducing your formula usage.
我们无法在不查看电子表格的情况下知道它有多复杂,但可以考虑减少公式的使用。 This article also mentions a max result size of 10MB and other pivot table limits.
本文还提到了 10MB 的最大结果大小和其他 pivot 表限制。 You could also try to divide the data or if the error rate is manageable you could also use some kind of retry strategy to query again until you get the results.
您也可以尝试划分数据,或者如果错误率可控,您还可以使用某种重试策略再次查询,直到获得结果。
If this is not enough then you may have reached the limits of what you can do with Sheets.如果这还不够,那么您可能已经达到了使用表格可以执行的操作的限制。 Digging deeper I found this Google issue tracker post which has a quote from their engineering team:
深入挖掘后,我发现了这个 Google问题跟踪器帖子,其中引用了他们的工程团队的话:
The BigQuery Engineering Team has stated that the current suggested approach is to simplify the spreadsheet.
BigQuery 工程团队表示,目前建议的方法是简化电子表格。 Sheets is designed for Web/Mobile use cases and not as a DB backend.
Sheets 专为 Web/移动用例而设计,而不是作为数据库后端。 Even a couple of thousand rows is large in this context, especially if there are formulas involved.
在这种情况下,即使是几千行也很大,尤其是在涉及公式的情况下。
The post is a feature request to the Google engineering team to allow for more complexity, but these requests can take time and if they don't intend Sheets to be used that way it's also possible that they won't implement it.该帖子是向 Google 工程团队提出的功能请求,以考虑到更多的复杂性,但这些请求可能需要时间,如果他们不打算以这种方式使用表格,他们也可能不会实施它。 If you cannot reduce the spreadsheet's complexity enough to stop getting the error you may want to consider querying the data from a different source.
如果您无法将电子表格的复杂性降低到足以停止出现错误的程度,您可能需要考虑从不同的来源查询数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.