简体   繁体   中英

Slow uploads to bigQuery using golang client

I am using deprecated BigQuery Golang library. Lately uploads became much slower. I wonder if updating the client to a new library will make a performance improvement. I couldn't find in the documentation anything saying about performance improvement.

Old deprecated library I am currently using: https://github.com/googleapis/google-api-go-client/tree/main/bigquery/v2

New client: https://github.com/googleapis/google-cloud-go/tree/main/bigquery

Should I expect to get performance improvement with the new library?

The cloud.google.com/go/bigquery package uses the google-api-go-client bigquery package under the hood. I wouldn't expect an improvement in raw network throughput from the switch, but you might see improvements due to how the cloud package does more of the low level API management for you.

To really answer the question, you'd need to be able to detail what you're doing and try to quantify the details a bit more: are you sending bytes to GCS, and then constructing a load job? Sending an inline upload as a load job? Streaming data?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM