plusplusjiajia commented on code in PR #2651:
URL: https://github.com/apache/iceberg-rust/pull/2651#discussion_r4682654963
##########
crates/storage/opendal/src/resolving.rs:
##########
@@ -325,10 +350,21 @@ impl Storage for OpenDalResolvingStorage {
let mut grouped: HashMap<&'static str, Vec<String>> = HashMap::new();
while let Some(path) = paths.next().await {
let scheme = extract_scheme(&path)?;
- grouped.entry(scheme).or_default().push(path);
+ let batch = grouped.entry(scheme).or_default();
+ batch.push(path);
+ if batch.len() >= DELETE_BATCH_SIZE {
Review Comment:
Opened #3772 to track it.
--
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]