As part of another, now rejected ticket, somebody wrote support for
unlogged tables:
https://github.com/aptivate/django/commits/ticket_19891 first commit:
https://github.com/aptivate/django/commit/657a1fee1ad3899f1254a971f32a6cea7b11c0a3
Support for unlogged tables for testing would be really helpful for having
tests run faster.
--
Ticket URL: <https://code.djangoproject.com/ticket/24306>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* needs_better_patch: => 0
* version: 1.7 => master
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24306#comment:1>
Comment (by timgraham):
According to [https://groups.google.com/d/topic/django-
developers/IkRgMxTTzPQ/discussion discussion on django-developers]
unlogged tables actually decreased performance for Django's own test
suite.
--
Ticket URL: <https://code.djangoproject.com/ticket/24306#comment:2>
Comment (by Daniel Hahler):
Replying to [ticket:24306 freyley]:
> Support for unlogged tables for testing would be really helpful for
having tests run faster.
I've tried this a while ago (by hacking Django's internals) and there was
not much gain from it.
But I was using most(?) of https://www.postgresql.org/docs/current/static
/non-durability.html already.
--
Ticket URL: <https://code.djangoproject.com/ticket/24306#comment:3>
* cc: Petr Přikryl (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/24306#comment:4>
Comment (by bcail):
A different use for UNLOGGED tables could be for the database cache
backend: https://martinheinz.dev/blog/105. Would it be an option to allow
specifying an `--unlogged` parameter for the `createcachetable` command to
create an UNLOGGED table for the database cache?
--
Ticket URL: <https://code.djangoproject.com/ticket/24306#comment:5>
Comment (by bcail):
Some discussion [https://forum.djangoproject.com/t/ticket-24306
-postgresql-unlogged-tables/25335 here]. Looks like the Postgresql-
specific option may be a problem, and the UNLOGGED feature may not give
much performance improvement for caches.
--
Ticket URL: <https://code.djangoproject.com/ticket/24306#comment:6>