#24018: Support journal_mode=WAL for sqlite
-------------------------------------+-------------------------------------
Reporter: Curtis Maloney | Owner: Curtis
| Maloney
Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by tonnzor):
Any progress here?
We could add `init_command` to `OPTIONS` for sqlite backend like for
MySQL.
Then you would be able to use any PRAGMA we need:
{{{
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'OPTIONS': {
'init_command': 'PRAGMA journal_mode=wal;',
}
}
}
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24018#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.f680dc79deba136e865d6ee16d8b47f4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.