djangosnippets.org: Latest snippets tagged with 'speed'https://djangosnippets.org/tags/speed/2012-12-02T08:27:17.774113-06:00Django Admin Speedup for big tables on postgres
2012-12-02T08:27:17.774113-06:00potiukhttps://djangosnippets.org/snippets/2855/<p>The code is Django 1.4 version of code based on the <a href="http://djangosnippets.org/snippets/2593/">Django 1.3 snippet</a> that speeds up Django's admin pages with postgres back-end for big tables (> few hundred thousands of records).</p>
Freely redistributableCaching Decorator
2012-04-25T14:29:13.306791-05:00spenczarhttps://djangosnippets.org/snippets/2735/<p>This is a decorator which will gets Django to try the cache before computing the result of a function. It automatically builds the cache key as a hash of the function name and inputs, and allows you to set whatever timeout you want.</p>
Freely redistributableSQL Printing Middleware
2007-06-17T00:08:31.945718-05:00ericflohttps://djangosnippets.org/snippets/290/<p>Just put it in your python path and add it into MIDDLEWARE_CLASSES.</p>
<p>I know that there are a couple of snippets on this site that do something similar to this, but none of them quite suited me. </p>
<p>I wanted something that would indent and space the SQL so that I …</p>
Freely redistributable