perf: increase sync batch sizes

This commit is contained in:
Travis Abendshien
2026-09-14 21:10:12 -07:00
parent 5953704e57
commit b93afa935e
+2 -2
View File
@@ -142,7 +142,7 @@ class LibrarySyncEngine:
def save_new_entries(self) -> Iterator[int]:
"""Save the paths found on disk that don't have a Library entry yet."""
batch_size = 200
batch_size = 1000
library_dir = unwrap(self.library.library_dir)
index = 0
@@ -171,7 +171,7 @@ class LibrarySyncEngine:
def sync_entry_stats(self) -> Iterator[int]:
"""Refresh cached os.stat() metadata for entries already known to the Library."""
batch_size = 500
batch_size = 5000
index = 0
while index < len(self.paths_to_restat):