Issue #2447683 by hefox: Better performance for sites that have few parents but many children several levels deep