Skip to content

GetTreeEntries: Limit number of flattened trees

Stan Hu requested to merge sh-limit-tree-recursions into master

When there are many subdirectories in a folder, GetTreeEntries can get bogged down trying to flatten all of them. Limit the number of flattened calls to 100 to avoid this.

This isn't an ideal solution, but it allows repositories to load without having to implement pagination in #3644 (closed).

Relates to #3445 (closed)

Edited by Stan Hu

Merge request reports

Loading