From 991ed979811ff7673d4645e672ce3b3ba15fe0c0 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Wed, 31 Jul 2013 20:06:27 -0400 Subject: [PATCH] Debugging ridiculous performance issues on /public. --- snipts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snipts/views.py b/snipts/views.py index 6003816..aa419be 100644 --- a/snipts/views.py +++ b/snipts/views.py @@ -153,7 +153,7 @@ def list_public(request, tag_slug=None): if request.blog_user: return blog_list(request) - snipts = Snipt.objects.filter(public=True).order_by('-created') + snipts = Snipt.objects.filter(public=True).order_by('-created')[:100] if tag_slug: snipts = snipts.filter(tags__slug__in=[tag_slug])