Skip to content

Commit

Permalink
order old files by subfolder to make it easier to follow old file pru…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
sduchesneau committed Nov 27, 2024
1 parent d017f33 commit 6b9c6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6b9c6fd

Please sign in to comment.