You are here: Re: I have sub-categories but want to display full category path « PHP Programming Language « IT news, forums, messages
Re: I have sub-categories but want to display full category path

Posted by R. Rajesh Jeba Anbiah on 02/06/07 05:43

On Feb 5, 7:45 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(R.RajeshJebaAnbiah)
>
> > Answer is Nested Set Model architecture <http://dev.mysql.com/
> >tech-resources/articles/hierarchical-data.html>
>
> Definitely not. In most cases a nested set structure is total overkill,
> especially if all you need is a simple parent-child relation. Running
> some queries recursively is quite cheap (even cheaper with prepared
> statements) and also much simpler compared to the very complex issue of
> handling a nested set.

My memory is vain on the theory of the recursive SQL, but the
overhead in nested set architecture is only when you insert the data,
but not while fetching. Usually the categories structure won't change
often--IOW, it's more or less static than dynamic. There is some good
stuff on nested sets here <http://dev.e-taller.net/dbtree/>

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация