Forum OpenACS Development: Re: tree_sortkey varbit limitations

Collapse
Posted by Jun Yamog on
Hi Tom,

I am a bit sleepy now, although not directly answering your question.  You can look at tree_level call instead of getting the length of tree_sortkey, etc.

Collapse
Posted by Tom Jackson on

Thanks Jun, that code seems to confirm that the toplevel has 32 bits of slots open, while children are limited to 8 bits per level. I'm not sure the using the tree_level would be any more efficient than the tcl code, they do pretty much the same thing, but tree_level is more general. I would still need to extend the db_multirow, or at least run a foreach to create the formatting.