【问题标题】:Bigquery Streaming API (insertAll) takes too long to come back with a responseBigquery Streaming API (insertAll) 需要很长时间才能返回响应
【发布时间】:2016-11-10 03:16:56
【问题描述】:

我们一直在使用 Google 在其 BigQuery 引擎中引入的新 Streaming API 来处理我们的一些内部内容。 99% 的请求的流式响应需要

API 方法调用:'insertAll()' Project_ID : '513990544911'

顺便说一句,响应总是在 930-950 秒之间。请求最终成功,我们得到了预期的响应。

有人遇到过类似的问题并且能够解决吗? BigQuery 团队的人可以解释这种行为吗?

谢谢。

【问题讨论】:

    标签: google-bigquery


    【解决方案1】:

    BigQuery 团队帮助我缩小了范围,这在客户端请求方面更是一个问题。 观察到该行为是因为我没有刷新用于向 BigQuery 发出请求的服务对象。 时不时地重新创建服务对象已经阻止了这个问题重新出现。

    API:BigQuery Python API

    #Refresh service object in Python:
    http = httplib2.Http()        
    http = credentials.authorize(http)        
    service = build('bigquery', 'v2', http=http)
    

    BigQuery 支持票:https://code.google.com/p/google-bigquery/issues/detail?id=196

    【讨论】:

      猜你喜欢
      • 2020-09-13
      • 1970-01-01
      • 1970-01-01
      • 2014-07-21
      • 1970-01-01
      • 2017-12-25
      • 2017-03-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多