Is there a reason why ctime column on data_bin table is not indexed?
Without indexes partitioning and purging requires a full table scan, and with performance metrics collection this table can get _extremely_ large which makes aforementioned tasks very slow, I am now watching a purge processwhich has been running several days now ..