Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7981365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:20:45+00:00 2026-06-04T10:20:45+00:00

On a Symfony exploration project, I have a model using doctrine NestedSet behaviour. Since

  • 0

On a Symfony exploration project, I have a model using doctrine NestedSet behaviour. Since the data is prepared in a flat file, I wrote a conversion utility to generate corresponding YAML. It turns out that processing NestedSet YML of around 100 records (max_depth=4) consumes over 40MB of PHP memory, which is not available to me.

Is there a work-around to this problem?

I’m thinking of 2 possible solutions.

  1. Write an equivalent PHP script to populate objects & save them
  2. Insert data via SQL statements, the challenge being to compute the left & right nodes

What do Symfonians suggest?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:20:47+00:00Added an answer on June 4, 2026 at 10:20 am

    Option 2 was better.

    I wrote a simple macro in Excel to compute the lgt and rgt values required for the pre-order tree. Logic as mentioned here: http://www.sitepoint.com/hierarchical-data-database-2/
    The same Excel utility would convert values to a SQL query that could be dumped via file.

    Going through the fixtures/object route exceeded the allowed memory limit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Symfony 1.4.5 with Doctrine I have a model which includes an uploaded image
im using symfony with doctrine, and Im trying to generate the schema yml file
Using Symfony and Doctrine, I have a multi-select list box. The multiple default values
we using symfony 1.0. We have an module work with Propel objects. The sql-querys
I'm using Symfony 1.4 and Doctrine. So far I had no problem running tasks
I'm using Symfony 1.4 and Doctrine. My application's backend was built using Symfony's admin
I'm using Symfony 2 with doctrine. I've set up a custom repository with a
Using symfony 1.4. I have the following widget declaration in my form: 'region' =>
My Symfony 1.3 project does not sync correctly with my SSH server. I have
Using Symfony 1.3 I have a normal form-filter that is used to filter values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.