Closed Bug 922732 Opened 11 years ago Closed 10 years ago

Cleanup Django session table regularly

Categories

(developer.mozilla.org Graveyard :: Performance, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jezdez, Unassigned)

Details

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();
This was fixed a while ago in https://github.com/mozilla/kuma/pull/1901
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.