From b6b2da88a4e6887c000f00f644b73473ea7fbb3f Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 5 May 2021 15:20:59 +0200 Subject: [PATCH] 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