feat(writer): configurable buffer size of unsized write#2143
feat(writer): configurable buffer size of unsized write#2143Xuanwo merged 12 commits intoapache:mainfrom
Conversation
|
I don't like current API:
For my current understanding, there are at least the following buffer related sizes:
I'm also seeking for better names. Any ideas? Seems we do need to add value in config, the best value cloud be different for services. |
I think it is ok to specify the buffer size for each write, since one writer is constructed per-write operation. Then maybe this write pattern could be a field in OpWrite like enum Buffersize {
AtLeast(usize),
Exact(usize),
AtMost(usize),
} |
No, too much. And they could be set at the same time, for example, at least 4MiB, at most 16 MiB. |
|
Why not just |
Seem that different services need different semantics, but maybe maintaining three related items is a little redundant. Waiting for an exact solution(naming scheme). |
|
Any suggestion? |
I think this need some further discussion before we implement this. |
|
Mostly LGTM, the only thing left is to resolve the conflicts. |
* config buffer size for gcs * config buffer size for oss s3 * refactor * refactor buffer size limitation * resolve comments * minor * minor * resolve comments * rebase main and resolve conflict * minor * typo
Currently only support configurable write buffer size for s3, gcs, and oss.
close #2087