mirror of
https://github.com/simon987/od-database.git
synced 2025-12-17 08:39:03 +00:00
Elasticsearch search engine (search & scroll)
This commit is contained in:
@@ -76,7 +76,7 @@ class HttpDirectory(RemoteDirectory):
|
||||
|
||||
results = []
|
||||
|
||||
if len(urls_to_request) > 3:
|
||||
if len(urls_to_request) > 4:
|
||||
# Many urls, use multi-threaded solution
|
||||
pool = ThreadPool(processes=10)
|
||||
files = pool.starmap(HttpDirectory._request_file, zip(repeat(self), urls_to_request))
|
||||
|
||||
Reference in New Issue
Block a user