···1222 AllTimeRecordsKey::new(new_creates_count.into(), &nsid).to_db_bytes()?,
1223 ),
1224 };
1225- batch.remove(&self.rollups, &old_k); // TODO: when fjall gets weak delete, this will hopefully work way better
01226 batch.insert(&self.rollups, &new_k, "");
1227 }
1228···1246 AllTimeDidsKey::new(new_dids_estimate.into(), &nsid).to_db_bytes()?,
1247 ),
1248 };
1249- batch.remove(&self.rollups, &old_k); // TODO: when fjall gets weak delete, this will hopefully work way better
01250 batch.insert(&self.rollups, &new_k, "");
1251 }
1252
···1222 AllTimeRecordsKey::new(new_creates_count.into(), &nsid).to_db_bytes()?,
1223 ),
1224 };
1225+ // remove_weak is allowed here because the secondary ranking index only ever inserts once at a key
1226+ batch.remove_weak(&self.rollups, &old_k);
1227 batch.insert(&self.rollups, &new_k, "");
1228 }
1229···1247 AllTimeDidsKey::new(new_dids_estimate.into(), &nsid).to_db_bytes()?,
1248 ),
1249 };
1250+ // remove_weak is allowed here because the secondary ranking index only ever inserts once at a key
1251+ batch.remove_weak(&self.rollups, &old_k);
1252 batch.insert(&self.rollups, &new_k, "");
1253 }
1254