steFaiz opened a new pull request, #8859:
URL: https://github.com/apache/paimon/pull/8859

   ### Purpose
   Current Blob Bunch will sort merge blob files EACH TIME adding a new blob.
   This will cause significant efficiency decrease.
   
   We should check blob file ranges after adding all files. Sort merge them 
only once. Result:
   
   | Number of Blob files | Before: merge on every `add` (ms) | After: merge 
once in `finish` (ms) | Speedup |
   |---:|---:|---:|---:|
   | 10 | 0.042 | 0.011 | 3.8× |
   | 100 | 3.482 | 0.104 | 33.6× |
   | 500 | 83.519 | 0.495 | 168.8× |
   | 1,000 | 330.831 | 1.003 | 329.9× |
   | 2,000 | 1,319.063 | 1.959 | 673.5× |
   
   ### Tests
   Unit Test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to