Re: Efficiently querying db

2011-07-13 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Jul 13, 2011 at 9:36 AM, Amit Sethi 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 > }

Efficiently querying db

2011-07-13 Thread Amit Sethi
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 a