Re: RE: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist
| From: | Dotan Cohen | Date: | Thu, 20 Jan 2011 19:59:38 +0000 |
| Subject: | Re: RE: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310918@lists.php.net to get a copy of this message | ||
On Thu, Jan 20, 2011 at 21:40, Jerry Schwartz <jerry@gii.co.jp> wrote:
>>Thanks. I prefer the "parent tag" field, though, I feel that it is
>>more flexible.
>>
>>
> [JS] I disagree. The method I proposed can be extended to any depth, and any
> leaf or branch can be retrieved with a single query.
>
I suppose for retrievals this structure has advantages, but unless
MySQL has a ++ operator (or better yet, one that adds or subtracts 2
from an int) then it looks to be a pain to add nodes.
But I will play with the idea. Maybe after I write the code (I'm
saving that for tomorrow) I'll see it differently. Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com