docs: improve chunk ordering docs
parent
96618af6a2
commit
c28f38309a
|
@ -233,8 +233,8 @@ where
|
||||||
|
|
||||||
let chunks = LockablePartition::chunks(&partition);
|
let chunks = LockablePartition::chunks(&partition);
|
||||||
|
|
||||||
// Also sort chunks by:
|
// Sort chunks by:
|
||||||
// 1. order: to ensure we compact closed order ranges during persistence
|
// 1. order: ensure compacting chunks with any potential updates together
|
||||||
// 2. ID: for a stable lock order
|
// 2. ID: for a stable lock order
|
||||||
let mut chunks: Vec<_> = chunks
|
let mut chunks: Vec<_> = chunks
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
@ -404,8 +404,8 @@ where
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Also sort chunks by:
|
// Sort chunks by:
|
||||||
// 1. order: to ensure we compact closed order ranges during persistence
|
// 1. order: ensure compacting chunks with any potential updates together
|
||||||
// 2. ID: for a stable lock order
|
// 2. ID: for a stable lock order
|
||||||
let mut chunks: Vec<_> = chunks
|
let mut chunks: Vec<_> = chunks
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
|
@ -761,8 +761,8 @@ impl Db {
|
||||||
partition_key,
|
partition_key,
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
// Also sort chunks by:
|
// Sort chunks by:
|
||||||
// 1. order: to ensure we compact closed order ranges during persistence
|
// 1. order: ensure compacting chunks with any potential updates together
|
||||||
// 2. ID: for a stable lock order
|
// 2. ID: for a stable lock order
|
||||||
let mut chunks: Vec<_> = chunks
|
let mut chunks: Vec<_> = chunks
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
Loading…
Reference in New Issue