News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Jani Hartikainen's Blog:
Understanding Doctrine's NestedSet feature
September 02, 2008 @ 10:29:56

On his CodeUtopia blog Jani Hartikainen gives an inside look at a feature of Doctrine, nested sets.

The Doctrine library comes with a feature called nested set, which makes saving trees in a database easy. However, it's quite easy to accidentally cause a lot of extra unneeded queries if not being careful. Here are some pointers to keep in mind while working with the nested set, and some example queries to make understanding it easier.

He gives an example, showing how to get rows from the database - parent and child - and some optimization tips to keep things light. There's also some pros and cons included for doing it either way (the standard fetching or using the more optimized versions).

0 comments voice your opinion now!
doctrine nestedset feature fetch database row parent child



Similar Posts

DevShed: Using Unbuffered Queries and More with SQLite with PHP 5

Sebastian Bergmann's Blog: Ideas for PHPUnit Projects

International PHP Magazine: Which Stage Comes First in the Development of the Basic CMS?

Zend Developer Zone: Paging Data Sets With PEAR Pager

DevShed: Databases: Finishing a Listing Service


Community Events







Don't see your event here?
Let us know!


cakephp book developer security conference zend example zendframework framework release ajax PHP5 package releases database mysql job PEAR code application

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework