Add new functionality to calculate chunk size dynamically#277
Add new functionality to calculate chunk size dynamically#277AidasK merged 4 commits intoflowjs:masterfrom
Conversation
|
@AidasK |
|
Okay. |
|
@aayusharyan @AidasK is there any update related to this PR. |
|
That looks cleaner! @aayusharyan @akshay-kh can you tell me more about the use case of this feature? Why do we need this? |
|
The use-case will be when we need to have a chunk size dynamically for each individual file... For example, I can say in my use-case GCS Takes 32 chunks in a single merge request. And due to backend limitations, I can perform only 32 chunks and my files can be anywhere from 500KB to 30GB and thus, I want to make chunkSize dynamic for each individual file. |
|
@AidasK, |
|
Oh, sounds super useful then 👍 |

Add
calculateChunkSizeoption when the chunkSize cannot be predecided for all the files... So, this will be called if it is defined and fileObject is passed as a parameter, so the chunk size can be set for each file without creating a new instance of Flow.