Albums: Use a temporary ZIP file for large downloads containing tens of thousands of files #2479

Open
opened 2026-02-20 01:12:09 -05:00 by deekerman · 2 comments
Owner

Originally created by @xiaobai6769 on GitHub (Feb 4, 2026).

Before You Continue

  • This is a new, confirmed bug that has not yet been reported or documented

What Is Not Working as Documented?

Excuse me , There is a serious problem here.
Downloading an album of tens of thousands of images may trigger an OOM.

Here is my configuration information.
free -h
total used free shared buff/cache available
Mem: 40Gi 12Gi 1.0Gi 1.4Mi 10Gi 26Gi

How Can We Reproduce It?

Downloading an album of tens of thousands of images may trigger an OOM.

What Behavior Do You Expect?

Excuse me, I can download it successfully.

What Could Be the Cause?

No response

Logs, Sample Files, or Screenshots

No response

Which Software Versions Do You Use?

AMD64

On What Device Is PhotoPrism Installed?


Do You Use a Reverse Proxy, Firewall, VPN, or CDN?

No response

Originally created by @xiaobai6769 on GitHub (Feb 4, 2026). ### Before You Continue - [x] This is a new, confirmed bug that has not yet been reported or documented ### What Is Not Working as Documented? Excuse me , There is a serious problem here. Downloading an album of tens of thousands of images may trigger an OOM. Here is my configuration information. free -h total used free shared buff/cache available Mem: 40Gi 12Gi 1.0Gi 1.4Mi 10Gi 26Gi ### How Can We Reproduce It? ```markdown Downloading an album of tens of thousands of images may trigger an OOM. ``` ### What Behavior Do You Expect? Excuse me, I can download it successfully. ### What Could Be the Cause? _No response_ ### Logs, Sample Files, or Screenshots _No response_ ### Which Software Versions Do You Use? ```markdown AMD64 ``` ### On What Device Is PhotoPrism Installed? ```markdown ``` ### Do You Use a Reverse Proxy, Firewall, VPN, or CDN? _No response_
Author
Owner

@lastzero commented on GitHub (Feb 5, 2026):

Thanks for your report! I would guess that the download speed is slower than the rate at which data is added to the memory buffer. Since writing the data to memory works well for most users who don't download tens of thousands of files, we could add a setting or size threshold that writes the data to disk and streams it from there instead. However, note that you might run out of disk space in this case. Would you like us to implement such a solution? Do you have any preferences?

@lastzero commented on GitHub (Feb 5, 2026): Thanks for your report! I would guess that the download speed is slower than the rate at which data is added to the memory buffer. Since writing the data to memory works well for most users who don't download tens of thousands of files, we could add a setting or size threshold that writes the data to disk and streams it from there instead. However, note that you might run out of disk space in this case. Would you like us to implement such a solution? Do you have any preferences?
Author
Owner

@xiaobai6769 commented on GitHub (Feb 9, 2026):

将数据写入磁盘并从磁盘流式传输。不过请注意,这种情况下你可能会用尽磁盘空间

I think there's no problem, after all, the cost of adding a hard drive is relatively cheap.

@xiaobai6769 commented on GitHub (Feb 9, 2026): > 将数据写入磁盘并从磁盘流式传输。不过请注意,这种情况下你可能会用尽磁盘空间 I think there's no problem, after all, the cost of adding a hard drive is relatively cheap.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/photoprism#2479
No description provided.