From 6b9c6fd890e14f872c89896904806b40ba2ba9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duchesneau?= Date: Wed, 27 Nov 2024 15:08:19 -0500 Subject: [PATCH] order old files by subfolder to make it easier to follow old file pruning --- datastore/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datastore/module.go b/datastore/module.go index 69edfa8..bc13829 100644 --- a/datastore/module.go +++ b/datastore/module.go @@ -38,7 +38,7 @@ func purgeModuleQuery(network, interval string) string { and filetype != 1 and network = '%s' group by bucket, network, subfolder - order by youngest_file_creation_date + order by subfolder ) select * from youngest_file where youngest_file_creation_date < now() - interval '%s';`, network, interval)