问题
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