Bug: Large batch syncing fails
Opened this issue · 2 comments
Describe the bug
Batch syncing of a large number of items a a library fails. Syncing a small number of item at a time works fine.
To Reproduce
This is the library I am working with: https://www.zotero.org/groups/4774891/proulxs/library.
On my local machine, I select all items, right click, Cita, Sync citations with Wikidata.
Expected behavior
The number of items selected for a batch sync should not matter.
Environment:
- Zotero version: 6.0.13
- Cita version: 0.3.3
- OS name and version: MacOS 12.2.1
Additional context
List of installed add-ons:
ZotFile
Folder Import for Zotero
Debug output log: Debug Output.txt
Item or collection causing trouble: Exported Items.rdf.zip
Sorry this has taken me so long! At least on my end I'm getting an out of memory error when I try to sync that many items at once. For each citation we need to download the corresponding item's data from Wikidata, which is about ~1 MB per item. So for 50K citations it's on the order of 5 GB of memory. Do you see significant memory usage on your end too? I then get an error that the item data downloaded from wikidata isn't valid - not sure if this is the real error or as a result of the memory issue.
Does this also run super slowly for you? I'm working to speed this up, but I guess to solve the memory issue things would need to be progressively written to disk.