Edit online

GitLab Connector Slow When Listing Large Folders

Problem

When working with a GitLab connection, it takes a very long time to list folders that contain lots of files.

Cause

The default maximum number of item per page when listing contents of folders is 100 per page. Folders that contain thousands of files require a lot of pagination events and the more often pagination occurs, the longer it takes.

Solution

To reduce the number of required paginations and hence speed up the loading of large folders in GitLab connections, you can set the gitlab.per_page_limit system property to a value greater than the default value of 100 (for example, you could set it to 1000 or greater if your folders contain thousands of resources).