improve task archiver query performance
Merge pull request #5088 from ticoann/improve_taskarchiver_query

improve task archiver query performance