Ticket #983 (new defect)

Opened 3 months ago

Last modified 3 months ago

maintenance/cleanupWebSessions.py does not scale

Reported by: makub Owned by:
Priority: normal Milestone: v0.98.1
Component: General Version: 0.97.0
Keywords: Cc:

Description

The script maintenance/cleanupWebSessions.py does not work for millions of web sessions, because it first collects all sessions keys, and then removes them. The script exhausts memory on a machine with 4GB memory.

The solution is to simply find and remove sessions in batches of small sizes, like 1000.

Attachments

cleanupWebSessions.py Download (1.1 KB) - added by makub 3 months ago.
a script that deletes in batches

Change History

Changed 3 months ago by makub

a script that deletes in batches

Changed 3 months ago by jbenito

  • milestone set to v0.98.1
Note: See TracTickets for help on using tickets.