mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-20 20:46:53 +00:00
Adds multiprocessing to the fuzzy matching for a speedup
This commit is contained in:
1 parent
ce8bf90663
commit
a03a745295
3 files changed
+83
-34
No files matched your search
@@ -13,6 +13,7 @@ class TestFuzzyMatchCommand(TestCase):
|
||||
stderr = StringIO()
|
||||
call_command(
|
||||
"document_fuzzy_match",
|
||||
"--no-progress-bar",
|
||||
*args,
|
||||
stdout=stdout,
|
||||
stderr=stderr,
|
||||
@@ -63,7 +64,7 @@ class TestFuzzyMatchCommand(TestCase):
|
||||
mime_type="application/pdf",
|
||||
filename="other_test.pdf",
|
||||
)
|
||||
stdout, _ = self.call_command()
|
||||
stdout, _ = self.call_command("--processes", "1")
|
||||
self.assertEqual(stdout, "Document 1 fuzzy match to 2 (confidence 86.667)\n")
|
||||
|
||||
def test_with_3_matches(self):
|
||||
|
||||
Reference in new issue
Block a user