"Hey fellow DB devs, I'm hitting a wall with a query that's taking ages to execute. I've got a massive table with customer purchase history, and I'm trying to get the total revenue for each year. The query is currently using 90% of my CPU and 10+ GB of RAM, any tips on optimizing it?"