I am experiencing slow response times when fetching data from BigQuery through an API request in python. The query takes much longer than expected to execute, and I'm not sure why. Here are some details:
Any suggestions on what could be causing this slow response time when using BigQuery, and how I can improve it? Is there any known difference in performance between BigQuery and Cloud SQL?
Thanks
Dor
Hi @dor,
Welcome to Google Cloud Community!
the slow response time when fetching data from BigQuery through an API request in Python can be caused by factors such as data size, network latency, and API configuration. If Cloud SQL provides a faster response time for your use case, it may be a better option. To improve the response time when using BigQuery, you can optimize your query, use caching, increase the number of slots, and use a faster network.
Thank you
Hi @christianpaula,
Would you mind to elaborate more on the options of improving the API query speed?
I am experiencing a similar issue that a same query with API request is much slower than running it on Cloud SQL, despite the data size is small (<10,000 rows).
The network speed I have is 100Mbps for both download and upload.
Some attempts I did:
Any reason that the Cloud SQL would be much faster than an API request?