fixes #1380 avoid performance issue with high volume albums

This commit is contained in:
plegall
2021-05-05 15:20:59 +02:00
parent eaa007b458
commit b6b2da88a4
+1 -1
View File
@@ -207,7 +207,7 @@ $category['nb_images_associated_outside'] = 0;
if ($category['nb_images_recursive'] > 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 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 = ' $query = '
SELECT SELECT