the difference was marginal. With total row it was 27 minutes (usually between 20 and 50). Without the row, it was 24 minutes.
Any other tips that could drastically reduce that time? I run other queries with more data that take 1-2 minutes, so I don’t know why this one is so long...