From fbb489b3dad3c465933db942c06d7328f268492d Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 5 May 2021 15:23:05 +0200 Subject: [PATCH] (cp b6b2da8) fixes #1380 avoid performance issue with high volume albums --- admin/cat_modify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/cat_modify.php b/admin/cat_modify.php index e3daa0def..881723024 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -207,7 +207,7 @@ $category['nb_images_associated_outside'] = 0; if ($category['nb_images_recursive'] > 0) { // if we don't have "too many" photos, it's faster to compute the orphans with MySQL - if ($category['nb_images_recursive'] < 30000) + if ($category['nb_images_recursive'] < 1000) { $query = ' SELECT