Hi I'm using the BigQuery python library and I'm having some trouble understanding how the RowIterator class works. Given a query job_id I would like to fetch the result rows in chunks of fixed size.
I first run the query, using the client.
query_job = client.query(query, job_config=job_config)
Later I fetch the job like this -
job = client.get_job(query_job.job_id)
result_iter = job.result()
I would like to know how job.result() gets the results. Does it fetch results one row at a time from the bigquery result table or are the entire results stored in memory. Also, how or where do I specify that I would like to fetch results in fixed chunksize and get the next page token?
Thanks!