diff --git a/ATP_Performance_Test/misc/views.py b/ATP_Performance_Test/misc/views.py index 622720d..3496b61 100644 --- a/ATP_Performance_Test/misc/views.py +++ b/ATP_Performance_Test/misc/views.py @@ -7,12 +7,12 @@ from ATP_Performance_Test.tuitter.models import Tuit def index(request): - recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').all(), 10).page(request.page) + recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').all().order_by("-added"), 10).page(request.page) return render_to_response("index.html", {"recent_tuits": recent_tuits}, context_instance=RequestContext(request)) def index_jinja2(request): - recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').all(), 10).page(request.page) + recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').all().order_by("-added"), 10).page(request.page) return jinja_render_to_response("index_jinja2.html", {"recent_tuits": recent_tuits}, context_instance=RequestContext(request)) diff --git a/ATP_Performance_Test/profiles/views.py b/ATP_Performance_Test/profiles/views.py index c1cbf44..31387ff 100644 --- a/ATP_Performance_Test/profiles/views.py +++ b/ATP_Performance_Test/profiles/views.py @@ -12,6 +12,6 @@ def show(request, id): except User.DoesNotExist, ValueError: raise Http404 - recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').filter(user=shown_user), 10).page(request.page) + recent_tuits = InfinitePaginator(Tuit.objects.select_related('user').filter(user=shown_user).order_by("-added"), 10).page(request.page) return render_to_response("profiles/show.html", {"shown_user": shown_user, "recent_tuits": recent_tuits}, context_instance=RequestContext(request)) \ No newline at end of file diff --git a/Ask The Pony - Django hosting performance roundup - June '11 - LOCAL NGINX.jmx b/Ask The Pony - Django hosting performance roundup - June '11 - LOCAL NGINX.jmx index 0c8a594..9891f95 100644 --- a/Ask The Pony - Django hosting performance roundup - June '11 - LOCAL NGINX.jmx +++ b/Ask The Pony - Django hosting performance roundup - June '11 - LOCAL NGINX.jmx @@ -20,7 +20,7 @@ users - 300 + 100 = @@ -45,8 +45,8 @@ - direct.askthepony.com - 8081 + quiet-mountain-395.herokuapp.com + 80 3000 5000