fixes #1392 improve performances to find related albums

* new conf setting related_albums_maximum_items_to_compute (1000 by default). Beyond this number of photos in current set, do not try to find related albums.

* new conf setting related_albums_display_limit : only display the heaviest (most related) albums.
This commit is contained in:
plegall 2021-05-04 17:17:05 +02:00
parent ddc2fafd58
commit 3e5acb7b6e
3 changed files with 21 additions and 3 deletions

View file

@ -643,6 +643,19 @@ $conf['tags_default_display_mode'] = 'cloud';
// tag_letters_column_number: how many columns to display tags by letter
$conf['tag_letters_column_number'] = 4;
// +-----------------------------------------------------------------------+
// | Related albums |
// +-----------------------------------------------------------------------+
// beyond this limit, do not try to find related albums. If there are too
// many items, the SQL query will be slow and the results irrelevant,
// because showing too many related albums.
$conf['related_albums_maximum_items_to_compute'] = 1000;
// once found the related albums, how many to show in the menubar? We take
// the heaviest (with more relations).
$conf['related_albums_display_limit'] = 20;
// +-----------------------------------------------------------------------+
// | Notification by mail |
// +-----------------------------------------------------------------------+