Basically, I think you need to index strategy and assigned_at column and also another column for your count() function because that needs to be index as well. probably the best is to select count(id) ... instead of select count(*) so you can index your id column (assuming you have id column in your table)
@automica It's slow in production. I don't fully understand why my manager wants to optimize this tho, I ran the query against prod DB and it took about 2.5 seconds which isn't that bad and the query isn't being run very often.
@neilstee I just checked the DB tables. It seems like they are indexed, but then again, I don't really know much about it, will take a look at the suggested videos, thanks!