mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-09-15 06:59:34 +02:00
perf: increase sync batch sizes
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user