mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-27 13:14:24 -04:00
add chunk_size=500 to more iterator calls
This commit is contained in:
parent
44849e1ba2
commit
d0fefc0279
7 changed files with 13 additions and 13 deletions
|
@ -218,7 +218,7 @@ def archive_links(all_links: Union[Iterable[Link], QuerySet], overwrite: bool=Fa
|
|||
if type(all_links) is QuerySet:
|
||||
num_links: int = all_links.count()
|
||||
get_link = lambda x: x.as_link_with_details()
|
||||
all_links = all_links.iterator()
|
||||
all_links = all_links.iterator(chunk_size=500)
|
||||
else:
|
||||
num_links: int = len(all_links)
|
||||
get_link = lambda x: x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue