Problem description
Currently ChunkedSegmentStorage makes two calls (create followed by first write) for addition of each new chunk.
This is unnecessary. Object/Blob storage allows to create and write data in a single request we should leverage that.
Problem location
ChunkedSegmentStorage::write and ChunkStorage.
Suggestions for an improvement
Provide another overload to ChunkStorage.create that takes initial data to write and writes it immediately.
Problem description
Currently ChunkedSegmentStorage makes two calls (create followed by first write) for addition of each new chunk.
This is unnecessary. Object/Blob storage allows to create and write data in a single request we should leverage that.
Problem location
ChunkedSegmentStorage::write and ChunkStorage.
Suggestions for an improvement
Provide another overload to ChunkStorage.create that takes initial data to write and writes it immediately.