album edition, timeout #1202

Closed
opened 2026-10-05 00:35:53 +02:00 by adam · 0 comments
Owner

Following #972 and b29ab344e9 it seems the 30k threshold is a bit high. For example, on a low energy CPU server on Piwigo.com, an album containing 19k photos made the SQL query run for a huge 98 seconds.

Let's lower the limit to 1k. The pure PHP solution remains fine.

Actually, this calculation (of the number of photos that would become orphan if the album was deleted) should be done only if the administrator asks for deletion. Totally useless 99% of the time.

Following #972 and b29ab344e9d727f483613f244d11e8971cb03df1 it seems the 30k threshold is a bit high. For example, on a low energy CPU server on Piwigo.com, an album containing 19k photos made the SQL query run for a huge 98 seconds. Let's lower the limit to 1k. The pure PHP solution remains fine. Actually, this calculation (of the number of photos that would become orphan if the album was deleted) should be done **only** if the administrator asks for deletion. Totally useless 99% of the time. <!-- github-sync-id:856687183 -->
adam closed this issue 2026-10-05 00:35:53 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1202