In JCR (Java Content Repository) and the Jackrabbit implementation of JCR, there’s no hard limit on the number of items that can exist at one level.
However, the performance of the repository may degrade as the number of child items at a particular level increases.
The optimal number of child nodes per level depends on many factors, including the specific use case and the performance characteristics of the underlying storage system.
In general, for smooth performance, it’s recommended to limit the number of child nodes to a few hundred or less at each level.
Click to see a Groovy script to split flat structures into folders
Using a balanced tree structure, you can mitigate performance issues when publishing hundreds of items at once.
See the itemsPerRequest property of the publish command.