Re: QuerySet hang

2009-09-30 Thread Michael
On Wed, Sep 30, 2009 at 2:12 AM, Waqas wrote: > > Thanks for ur reply Micheal. > It is hanging exactly on following line: > > rs = InqueuePing.objects.filter(processed = 0).order_by('-timestamp') > > If I remove order_by function then it works fine. > > I think this is not django issue. I debug t

Re: QuerySet hang

2009-09-29 Thread Waqas
Thanks for ur reply Micheal. It is hanging exactly on following line: rs = InqueuePing.objects.filter(processed = 0).order_by('-timestamp') If I remove order_by function then it works fine. I think this is not django issue. I debug the code using pdb and found that the code is hanging from MySQ

Re: QuerySet hang

2009-09-28 Thread Michael
On Mon, Sep 28, 2009 at 2:38 AM, Waqas wrote: > > I have written an offline application. In this application, i have > written following code: > > rs = InqueuePing.objects.filter(processed = 0).order_by('-timestamp') > > if rs: >#bla bla bla here > > > The process is hanging on evaluating the

QuerySet hang

2009-09-27 Thread Waqas
I have written an offline application. In this application, i have written following code: rs = InqueuePing.objects.filter(processed = 0).order_by('-timestamp') if rs: #bla bla bla here The process is hanging on evaluating the if condition. I digg the code of django and i found that django