doctrine2-nestedset
doctrine2-nestedset copied to clipboard
Intro Docs Suggestion, mention $nsm->reset().
Just a suggestion, you might want to include a section on bulk inserts and managing imports of large heirarchies with the Nested Set manager extension.
I just struggled with speed and page loads until I eventually found the $nsm->reset() method.
Eventually got a nice memory graph like http://chrisacky.com/images/phpGC.jpg which would import 4000 items in 50 seconds.
When I was stuck on something like this http://chrisacky.com/images/memoryLeakDoctrine.jpg which would take around 8 minutes for 1000 items importing.
Adding $nsm->reset() in addition to $em->clear() helped alleave this.