Re: Speed of search question

2011-07-08 Thread Benedict Verheyen
On 7/07/2011 11:31, Marc Aymerich wrote: > Hi Benedict, > If you're concerned about the performance of your django apps, I > recomend you this app: > https://github.com/robhudson/django-debug-toolbar/commits/master/ > > Besides many other interesting things, It shows you the DB queries > that

Re: Speed of search question

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 3:01 PM, Marc Aymerich wrote: > https://github.com/robhudson/django-debug-toolbar/commits/master/ > DDT rocks. Btw, does this fork have any special features when compared with the Master? -V -- You received this message because you are subscribed

Re: Speed of search question

2011-07-07 Thread Marc Aymerich
On Thu, Jul 7, 2011 at 8:15 AM, Benedict Verheyen wrote: > On 6/07/2011 12:28, Malcolm Box wrote: >> I think this should work: >> >> Calendar.objects.filter(appointment__owner = request.user) >> >> Try it and see. >> >> Malcolm >> > > Thanks, > > > I'll see if I can

Re: Speed of search question

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 11:45 AM, Benedict Verheyen < benedict.verhe...@gmail.com> wrote: > > I'll see if I can make a test script to test this. > It's actually a good idea to put in a performance test of some sorts. > I have much complex relationships, and i dont see any peformance issues. -V

Re: Speed of search question

2011-07-07 Thread Benedict Verheyen
On 6/07/2011 12:28, Malcolm Box wrote: > I think this should work: > > Calendar.objects.filter(appointment__owner = request.user) > > Try it and see. > > Malcolm > Thanks, I'll see if I can make a test script to test this. It's actually a good idea to put in a performance test of some

Re: Speed of search question

2011-07-06 Thread Malcolm Box
On 6 July 2011 08:17, Benedict Verheyen wrote: > > I have these models (not really but it's to explain my question :)) > > class Calendar(models.Model): >name = models.CharField(max_length=60) >description = models.TextField(blank=True) >appointment =

Speed of search question

2011-07-06 Thread Benedict Verheyen
Hi, I have these models (not really but it's to explain my question :)) class Calendar(models.Model): name = models.CharField(max_length=60) description = models.TextField(blank=True) appointment = models.ManyToManyField(Appointment, related_name='appointment_set') class