Skip to content

increase the default chunk size for uploads #775

Closed
@tswast

Description

@tswast

See: googleapis/google-resumable-media-python#238

The BigQuery client library currently defaults to 1MB chunks.

_DEFAULT_CHUNKSIZE = 1048576 # 1024 * 1024 B = 1 MB

The bq CLI currently defaults to 100MB chunks (via googleapiclient). https://github.com/googleapis/google-api-python-client/blob/11d78e0fe9290d1a8c516a0e2f2e019dbd1877f9/googleapiclient/http.py#L69

Perhaps this could be the cause of the 10x performance difference for file uploads?

CC @KevinTydlacka

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions