-
- Downloads
There was an error fetching the commit references. Please try again later.
Reduce N+1 from Activity Dashboard and Banzai
There is a combination of few strategies implemented here: 1. Few relations were eager loaded 2. Changed few polymorphic routes to specific ones so we don't have to use `#becomes(Namespace)` which doesn't preserve association cache
Showing
- app/helpers/events_helper.rb 4 additions, 0 deletionsapp/helpers/events_helper.rb
- app/helpers/projects_helper.rb 1 addition, 1 deletionapp/helpers/projects_helper.rb
- app/models/event.rb 1 addition, 1 deletionapp/models/event.rb
- app/models/note.rb 1 addition, 1 deletionapp/models/note.rb
- changelogs/unreleased/fix-n-plus-1-queries-projects.yml 6 additions, 0 deletionschangelogs/unreleased/fix-n-plus-1-queries-projects.yml
- spec/helpers/events_helper_spec.rb 32 additions, 0 deletionsspec/helpers/events_helper_spec.rb
- spec/helpers/projects_helper_spec.rb 12 additions, 0 deletionsspec/helpers/projects_helper_spec.rb
Please register or sign in to comment