Skip to content

Commit df193e2

Browse files
changed buffersize
1 parent 401008d commit df193e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Extensions/AzureBlob/Cosmos.DataTransfer.AzureBlobStorage/AzureBlobDataSink.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public async Task WriteToTargetAsync(Func<Stream, Task> writeToStream, IConfigur
5454
{
5555
if (DateTime.UtcNow - lastLogTime >= logInterval)
5656
{
57-
logger.LogInformation("{BlobName}: transferred {TotalMiB} MiB to Azure Blob", settings.BlobName, l / 1024/1024);
57+
logger.LogInformation("{BlobName}: transferred {TotalMiB} MiB to Azure Blob", settings.BlobName, (double) l / 1024/1024);
5858
lastLogTime = DateTime.UtcNow;
5959
}
6060

@@ -69,9 +69,9 @@ public async Task WriteToTargetAsync(Func<Stream, Task> writeToStream, IConfigur
6969

7070
if (totalBytes != 0)
7171
{
72-
var totalMib = totalBytes / 1024 / 1024;
72+
var totalMib = (double) totalBytes / 1024 / 1024;
7373

74-
logger.LogInformation("{BlobName}: transferred {TotalMiB} Mib to Azure Blob in {TotalTime} seconds.", settings.BlobName, totalMib, sw.ElapsedMilliseconds / 1000);
74+
logger.LogInformation("{BlobName}: transferred {TotalMiB} Mib to Azure Blob in {TotalTime} seconds.", settings.BlobName, totalMib, (double) sw.ElapsedMilliseconds / 1000);
7575
}
7676
}
7777

Extensions/Json/Cosmos.DataTransfer.JsonExtension/Settings/JsonFormatWriterSettings.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public class JsonFormatWriterSettings : IDataExtensionSettings
66
{
77
public bool IncludeNullFields { get; set; }
88
public bool Indented { get; set; }
9-
public int BufferSizeMB { get; set; } = 200;
9+
public int BufferSizeMB { get; set; } = 100;
1010
}
1111
}

0 commit comments

Comments
 (0)