Efficiently querying db
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.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home