On Wed, Jul 13, 2011 at 9:36 AM, Amit Sethi <amit.pureene...@gmail.com>wrote:

> I have a db that looks something like  this .
>
> { message : xyz
>  parent : 23
>  id : 25
> }
>  or
> { message : abc
> parent : None
> id : 25
> }
>
> { message : cde
> parent : 28
> id : 32
> }
>
> { message : lbq
> parent : 23
> id : 35
> }
>
> I want to make seperate the lists such that messages in same thread(
> The parent message and its child messages } come together . What is
> the best way to query the db or a efficient algorithm to do this.
>

How about you tell us what you have thought of so far, and we'll give you
some feedback on whether or not it can be improved upon.


>
>
> --
> A-M-I-T S|S
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to