Re: DB Models best practice

2008-06-13 Thread Brad Wright
On Jun 12, 11:44 pm, "Bartek Gniado" <[EMAIL PROTECTED]> wrote: > Instead of over complicating it like this. Why not just use memcached or > django's own cache? He's referring to: http://www.djangoproject.com/documentation/cache/ --~--~-~--~~~---~--~~ You

Re: DB Models best practice

2008-06-12 Thread Bartek Gniado
Instead of over complicating it like this. Why not just use memcached or django's own cache? On Thu, Jun 12, 2008 at 11:45 AM, Juan Hernandez <[EMAIL PROTECTED]> wrote: > Hey there, I have a question concerning performance and best practices > > I have this piece of code in one of my views > >

DB Models best practice

2008-06-12 Thread Juan Hernandez
Hey there, I have a question concerning performance and best practices I have this piece of code in one of my views = # query execution def db(): return bp.objects.all() def title(): x = db() y = x[0].title return y def blogSubtitle(): return