From: JT S. <jt...@pl...> - 2004-07-02 03:22:58
|
>I don't think that caching the tree will be necessary. > >This will cost: > - one statement for $root > - one statement for $current > - one statement for $root->children > - one statement for $ancestor > - one statement for $ancestor->descendants > - one statement for $current->ancestors > >Six statements in total, thats cheap IMO. Agreed. It is cheap, especially when compared with what we're doing now. However, on a busy system you can keep adding web nodes that can each have their own cache. It's a lot harder to set up a reliable database cluster. For performance we don't really need the cache, but I think for scalability we do. JT ~ Plain Black Create like a god, command like a king, work like a slave. |