This is *very* inefficient. You are loading all competitions into memory and then filtering them in ruby. Why not actually just query the database for the competitions you want?
```
Competition.where(tags: @idea.tags)
```