#23830: Make expired session clearing on database backend scale better
-------------------------------------+-------------------------------------
Reporter: adamchainz | Owner:
Type: | adamchainz
Cleanup/optimization | Status: assigned
Component: contrib.sessions | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
Has patch: 1 | Unreviewed
Needs tests: 0 | Needs documentation: 0
Easy pickings: 1 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by adamchainz):
PR: https://github.com/django/django/pull/3520
Adapted from some production code.
Tests pass but there is naturally no test for >10k sessions. I tried one
out and of course it was very slow. We could make the chunk size an extra
setting and that would make it testable?
--
Ticket URL: <https://code.djangoproject.com/ticket/23830#comment:2>
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/068.d95ed1ffc97537043184106309819593%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.