Database schema optimization - part 7

This commit is contained in:
mdecimus
2025-11-06 22:29:03 +01:00
parent c35f0aa86b
commit 73f09072ab
37 changed files with 3209 additions and 1925 deletions

View File

@@ -118,11 +118,18 @@ impl ExtractETag for BatchBuilder {
match op {
Operation::Value {
class: ValueClass::Property(p_id),
op: ValueOp::Set { value, .. },
op: ValueOp::Set(value),
} if *p_id == p_value => {
return Archive::<AlignedBytes>::extract_hash(value)
.map(|hash| format!("\"{}\"", hash));
}
Operation::Value {
class: ValueClass::Property(p_id),
op: ValueOp::SetFnc(set_fnc),
} if *p_id == p_value => {
return Archive::<AlignedBytes>::extract_hash(set_fnc.params().bytes(0))
.map(|hash| format!("\"{}\"", hash));
}
_ => {}
}
}