Cleanup Django session table regularly

RESOLVED FIXED

Status

developer.mozilla.org
Performance
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: jezdez, Unassigned)

Tracking

Details

(Reporter)

Description

5 years ago
I realized that we have a large set of entries in the session table and don't clean them out (or not often enough).

Django contains a "cleanup" management command (run it with `./manage.py cleanup` inside the kuma directory) but that sometimes breaks due to high memory usage.

Alternative this SQL does the trick, too:

  DELETE FROM django_session WHERE expire_date < NOW();
(Reporter)

Comment 1

4 years ago
This was fixed a while ago in https://github.com/mozilla/kuma/pull/1901
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.