Re: Slow reorder TreeBehaviour

2011-10-28 Thread AD7six
On Oct 28, 10:09 am, Constantin.FF constantin...@gmail.com wrote: I need my tree sorted by each post sort value. Here is the function dealing with this. But it is executed extremely slow if some of the parents has more than 20-30 children         function _sortPosts($newSort){              

Re: Slow reorder TreeBehaviour

2011-10-28 Thread Constantin FF
Not a deja vu, just decided that will be much more comfortable to use a field with an order number and just once to click Save order than continuously clicking the moveDown or moveUp links until the desired position. Will check the queries On Fri, Oct 28, 2011 at 11:46 AM, AD7six

Re: Slow reorder TreeBehaviour

2011-10-28 Thread AD7six
On Oct 28, 10:58 am, Constantin FF constantin...@gmail.com wrote: Not a deja vu, just decided that will be much more comfortable to use a field with an order number and just once to click Save order than continuously clicking the moveDown or moveUp links until the desired position. Who

Re: Slow reorder TreeBehaviour

2011-10-28 Thread Constantin FF
Is there a better way for doing that? There is something similar in other CSM like joomla On Fri, Oct 28, 2011 at 12:11 PM, AD7six andydawso...@gmail.com wrote: On Oct 28, 10:58 am, Constantin FF constantin...@gmail.com wrote: Not a deja vu, just decided that will be much more comfortable

Re: Slow reorder TreeBehaviour

2011-10-28 Thread AD7six
On Oct 28, 11:16 am, Constantin FF constantin...@gmail.com wrote: Is there a better way for doing that? There is something similar in other I haven't written anything that implied/suggested/required changing your existing interface, only your php code. function _sortPosts($newSort){

Re: Slow reorder TreeBehaviour

2011-10-28 Thread Constantin.FF
Probably this could work but will be almost impossible to calculate the step for moveDown of each post also in this action are involved parents and children so in the $newSort each post is as post_id = order number. So if I do it like you suggested, first I will have to separate posts with same

Re: Slow reorder TreeBehaviour

2011-10-28 Thread AD7six
On Oct 28, 12:37 pm, Constantin.FF constantin...@gmail.com wrote: Probably this could work but will be almost impossible to calculate the step for moveDown _WHY_ would you need to calculate that? The suspicion arises that you aren't reading much of what I write. of each post also in this

Re: Slow reorder TreeBehaviour

2011-10-28 Thread Constantin FF
Thanks for the time and ideas. I continue working on both methods. On Fri, Oct 28, 2011 at 1:47 PM, AD7six andydawso...@gmail.com wrote: On Oct 28, 12:37 pm, Constantin.FF constantin...@gmail.com wrote: Probably this could work but will be almost impossible to calculate the step for