In DIRACGrid/diracx-charts#222 refresh token clean up was intended to be implemented by calling TRUNCATE on partitions which are too old.
Instead old refresh tokens are being cleaned with a simple DELETE which has two issues:
- A huge number of rows are deleted in each query, resulting in a massive undo log and poor performance
- Newer partitions aren't being maintained
Instead we should:
In DIRACGrid/diracx-charts#222 refresh token clean up was intended to be implemented by calling TRUNCATE on partitions which are too old.
Instead old refresh tokens are being cleaned with a simple DELETE which has two issues:
Instead we should: