Skip to content

Commit 4944563

Browse files
jordanhunt22Convex, Inc.
authored and
Convex, Inc.
committed
[Document Retention] Increase to 3000 documents scanned per run (#29001)
Increase max scanned documents from 1500 -> 3000. GitOrigin-RevId: 585e83b669498158f431aeaedd675889cb3befc9
1 parent 19a227c commit 4944563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/common/src/knobs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ pub static DOCUMENT_RETENTION_BATCH_INTERVAL_SECONDS: LazyLock<Duration> = LazyL
449449
/// there are a bunch of writes at single timestamp. Then, we go until there are
450450
/// no more writes at that timestamp.
451451
pub static DOCUMENT_RETENTION_MAX_SCANNED_DOCUMENTS: LazyLock<usize> =
452-
LazyLock::new(|| env_config("DOCUMENT_RETENTION_MAX_SCANNED_DOCUMENTS", 1500));
452+
LazyLock::new(|| env_config("DOCUMENT_RETENTION_MAX_SCANNED_DOCUMENTS", 3000));
453453

454454
/// Size at which a search index will be queued for snapshotting.
455455
pub static SEARCH_INDEX_SIZE_SOFT_LIMIT: LazyLock<usize> =

0 commit comments

Comments
 (0)