Closed prem-celestial closed 1 year ago
The original chunk size of 6MB for default case and 8MB for intelligent ingestion is kept as it is for files smaller than 60GB for default case and 80GB for intelligent ingestion.
The following calculation has been added for file size greater than 60GB (default case) and 80GB (intelligent ingestion case),
The size of each chunk is determined by dividing file size to max number of chunks , e.g File size = 70GB chunk size = File size / Max number of chunks chunk size = 70 GB / 10,000
This way the chunk size is made dynamic after file size exceeds 60GB for default case and 80GB for intelligent ingestion.
I have created this PR to fix https://filestack.atlassian.net/browse/FS-10615. Please review the same.