Try optimized cleanup SQL query
Try optimized cleanup SQL query

The previous DELETE query on activities took over 4 days avoiding dropping
chunks on next run. The new query should take less time by not requiring
to create a materialized view on trace activity UUIDs.

jgraichen/mnemosyne-server,jgraichen/mnemosyne-server,jgraichen/mnemosyne-server