Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kalyse opened this issue Aug 1, 2011 · 0 comments
Open

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

Kalyse opened this issue Aug 1, 2011 · 0 comments

Comments

@Kalyse
Copy link

Kalyse commented Aug 1, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant