doctrine2-nestedset icon indicating copy to clipboard operation
doctrine2-nestedset copied to clipboard

Intro Docs Suggestion, mention $nsm->reset().

Open Kalyse opened this issue 13 years ago • 0 comments

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.

Kalyse avatar Aug 01 '11 20:08 Kalyse