Hey Ivan, On Thu, 2006-08-17 at 09:44 +0400, Ivan Sagalaev wrote: [...] > BTW the main disadvantage of parent field is considered to be the need > to make make a separate SQL request for each parent to get its children. > When I was implementing it for hierarchical comments I've used a single > SELECT to get all the records and then was dealing with references in > Python list. This is hardly more complex but is faster (unless you try > to work with huge sets). Or am I missing something?
Yes, that's correct. That's the way I make my topic cloud as well: select everything and then a couple of (quick) passes over the data to organise it into the appropriate Python tree structure. Cheers, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---