Anton-Tarazi opened a new pull request, #2674:
URL: https://github.com/apache/iceberg-python/pull/2674

   <!--
   Thanks for opening a pull request!
   -->
   
   <!-- In the case this PR will resolve an issue, please replace 
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
   <!-- Closes #${GITHUB_ISSUE_ID} -->
   
   Resolves #2673
   
   # Rationale for this change
   
   `_SnapshotProducer._summary()` copies the metadata for _every_ added / 
deleted DataFile. This is pretty expensive. Instead we just copy it once at the 
beginning of the function and use the same value each DataFile.
   
   On my data, which overwrites a few million rows at a time, I saw the time 
for `table.overwrite` go from ~20 seconds to ~6 seconds. 
   
   ## Are these changes tested?
   
   Yes, existing unit / integration tests
   
   ## Are there any user-facing changes?
   
   Just faster writes :)
   
   <!-- In the case of user-facing changes, please add the changelog label. -->
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to