Assume for a second that Cake conventions in DboMySQL are not the
fastest, most efficient way to run a query and that there is a
situation where it's essential to tweak for speed. My application
needs a super-fast preorder tree traversal hierarchy model to inherit
from. I don't want Cake to do a loop in DboMySQL and then another loop
to get a simpler array after running Model::execute().

What is the best way to get a "normal" result set as opposed to a
nested result as below? I'm thinking I'll need a custom Dbo or a
modified DboMySQL.

Array
(
    [0] => Array
        (
            [parent] => Array
                (
                    [name] => PREORDER
                )

        )

    [1] => Array
        (
            [parent] => Array
                (
                    [name] => TREE
                )

        )

    [2] => Array
        (
            [parent] => Array
                (
                    [name] => HIERARCHY
                )

        )

    [3] => Array
        (
            [parent] => Array
                (
                    [name] => DATA
                )

        )

)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to