improve comments

Co-authored-by: Paul Masurel <paul@quickwit.io>
This commit is contained in:
PSeitz
2022-09-30 04:00:47 +02:00
committed by Pascal Seitz
parent 8f647b817f
commit f8686ab1ec
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ impl SegmentSerializer {
store_write,
crate::store::Compressor::None,
0, // we want random access on the docs, so we choose a minimal block size. Every
// doc will be flushed
// doc will get its own block.
settings.docstore_compress_dedicated_thread,
)?
} else {

View File

@@ -393,8 +393,8 @@ fn remap_and_write(
serializer
.segment()
.open_read(SegmentComponent::TempStore)?,
1, /* The docstore is configured for tiny docs for fast random access, we don't need
* the the cache */
1, /* The docstore is configured to have one doc per block, and each doc is accessed
* only once: we don't need caching. */
)?;
for old_doc_id in doc_id_map.iter_old_doc_ids() {
let doc_bytes = store_read.get_document_bytes(old_doc_id)?;