Does Google BigQuery charge for GetQueryResults()

夙愿已清 提交于 2020-01-07 08:37:23

问题


I am running the Query in C#.NET application using .NET API library which is added through Nu-Get package manager.

My Query:

Select * From DataSetID.TableID LIMIT 10000

Note: Data Processing for the above query is 1GB (get it from Web-UI).

When i am running the same query in C#.NET application, i am able to get ~5600 Rows in single request, then i am passing PageToken to GetQueryResults method and get remaining records. (Through pagination).

So There are 2 Query request to get 10K records.

How Google charges for Data Processing either 1 GB for query nor 2 Requests * 1GB = 2GB ?


回答1:


BQ charges per query issued, not per call to GetQueryResults. You can call GetQueryResults as many times as you like and it won't change your bill.




回答2:


Since you run multiple jobs, each job has it's own cost plan. In the response of the getQueryResults you have cacheHit attribute that tells you if you hit the cache, and it was free, or not.

You can always check based on jobId the costs of a query using the BQ console tool or the API.



来源:https://stackoverflow.com/questions/31335308/does-google-bigquery-charge-for-getqueryresults

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!