feat(settings): add configurable hash chunk size

This commit is contained in:
Will Miao
2025-11-10 10:09:56 +08:00
parent 4dd8ce778e
commit 415fc5720c
3 changed files with 33 additions and 5 deletions

View File

@@ -55,6 +55,9 @@ CIVITAI_USER_MODEL_TYPES = [
'checkpoint',
]
# Default chunk size in megabytes used for hashing large files.
DEFAULT_HASH_CHUNK_SIZE_MB = 4
# Auto-organize settings
AUTO_ORGANIZE_BATCH_SIZE = 50 # Process models in batches to avoid overwhelming the system