diff --git a/crates/sui-indexer-alt/src/handlers/coin_balance_buckets_pruner.rs b/crates/sui-indexer-alt/src/handlers/coin_balance_buckets_pruner.rs index dcbfb8e4e27ba..f3a9619692464 100644 --- a/crates/sui-indexer-alt/src/handlers/coin_balance_buckets_pruner.rs +++ b/crates/sui-indexer-alt/src/handlers/coin_balance_buckets_pruner.rs @@ -32,7 +32,7 @@ impl Processor for CoinBalanceBucketsPruner { .into_iter() .map(|o| (o.id(), o)) .collect(); - let mut values = Vec::with_capacity(checkpoint_input_objects.len()); + let mut values = Vec::new(); for (object_id, input_object) in checkpoint_input_objects { // This loop processes all coins that were owned by a single address prior to the checkpoint, // but is now deleted/wrapped, or changed owner or coin balance bucket the checkpoint. @@ -103,5 +103,7 @@ impl Handler for CoinBalanceBucketsPruner { } impl FieldCount for CoinBalanceBucketToBePruned { + // This does not really matter since we are not limited by postgres' bound variable limit, because + // we don't bind parameters in the deletion statement. const FIELD_COUNT: usize = 1; } diff --git a/crates/sui-indexer-alt/src/handlers/obj_info_pruner.rs b/crates/sui-indexer-alt/src/handlers/obj_info_pruner.rs index 4ef411c908207..eabbaeb6944d8 100644 --- a/crates/sui-indexer-alt/src/handlers/obj_info_pruner.rs +++ b/crates/sui-indexer-alt/src/handlers/obj_info_pruner.rs @@ -96,6 +96,7 @@ impl Handler for ObjInfoPruner { } impl FieldCount for ObjInfoToBePruned { - // This does not really matter since we are deleting, and we are not limited by the insertion limit. + // This does not really matter since we are not limited by postgres' bound variable limit, because + // we don't bind parameters in the deletion statement. const FIELD_COUNT: usize = 1; }