From 3b6a66f0bbc8b029be0c07a538c7fe6fd50c9c5a Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 30 Jun 2023 09:06:38 -0400 Subject: [PATCH] Clean 10 rooms per night --- scripts/matrix/clean-old-rooms.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/matrix/clean-old-rooms.sh b/scripts/matrix/clean-old-rooms.sh index ce3a958..d8c830f 100755 --- a/scripts/matrix/clean-old-rooms.sh +++ b/scripts/matrix/clean-old-rooms.sh @@ -4,7 +4,7 @@ set -eou pipefail # Get the list of rooms with no local users empty_rooms() { psql -d synapse -c "SELECT room_id FROM room_stats_current WHERE local_users_in_room = 0 \ - ORDER BY current_state_events DESC LIMIT 3;" -t --csv + ORDER BY current_state_events DESC LIMIT 10;" -t --csv } # Delete a room and purge its history