You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can set configuration options when downloading a blob to optimize performance. The following configuration options are available for download operations:
55
+
56
+
-`BlockSize`: The size of each block when downloading a block blob. The default value is 4 MB.
57
+
-`Concurrency`: The maximum number of parallel connections to use during download. The default value is 5.
58
+
59
+
These options are available when downloading using the following methods:
The [DownloadStream](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.DownloadStream) method doesn't support these options, and downloads data in a single request.
65
+
66
+
For more information on transfer size limits for Blob Storage, see [Scale targets for Blob storage](scalability-targets.md#scale-targets-for-blob-storage).
67
+
68
+
The following code example shows how to specify data transfer options using the [DownloadFileOptions](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob#DownloadFileOptions). The values provided in this sample aren't intended to be a recommendation. To properly tune these values, you need to consider the specific needs of your app.
To learn more about tuning data transfer options, see [Performance tuning for uploads and downloads with Go](storage-blobs-tune-upload-download-go.md).
@@ -71,8 +72,16 @@ You can define client library configuration options when uploading a blob. These
71
72
72
73
You can set configuration options when uploading a blob to optimize performance. The following configuration options are available for upload operations:
73
74
74
-
-`BlockSize`: The size of each block when uploading a block blob. The default value is 1 MiB.
75
-
-`Concurrency`: The maximum number of parallel connections to use during upload. The default value is 1.
75
+
-`BlockSize`: The size of each block when uploading a block blob. The default value is 4 MB.
76
+
-`Concurrency`: The maximum number of parallel connections to use during upload. The default value is 5.
77
+
78
+
These configuration options are available when uploading using the following methods:
The [Upload](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blockblob#Client.Upload) method doesn't support these options, and uploads data in a single request.
76
85
77
86
For more information on transfer size limits for Blob Storage, see [Scale targets for Blob storage](scalability-targets.md#scale-targets-for-blob-storage).
0 commit comments