Page MenuHomePhabricator

Use batches to find files in galleries
Open, Needs TriagePublic

Description

The TraditionalImageGallery class is using repeated calls to RepoGroup::findFile. Each call can result in a database query. That can impact the performance if the page has to list 5000 files [It may not possible to see all images because the thumb generation has some other limits]

The class could use RepoGroup::findFiles to batch the lookup and reduce database queries.