log improvements (#1564)

This commit is contained in:
PSeitz
2022-09-30 08:39:26 +08:00
committed by GitHub
parent 0da2a2e70d
commit fadd784a25
2 changed files with 8 additions and 1 deletions

View File

@@ -374,9 +374,9 @@ fn remap_and_write(
doc_id_map,
)?;
debug!("resort-docstore");
// finalize temp docstore and create version, which reflects the doc_id_map
if let Some(doc_id_map) = doc_id_map {
debug!("resort-docstore");
let store_write = serializer
.segment_mut()
.open_write(SegmentComponent::Store)?;

View File

@@ -104,6 +104,13 @@ impl ZstdCompressor {
value, opt_name, err
)
})?;
if value >= 15 {
warn!(
"High zstd compression level detected: {:?}. High compression levels \
(>=15) are slow and will limit indexing speed.",
value
)
}
compressor.compression_level = Some(value);
}
_ => {