Project

General

Profile

Patch #33431 » time_query_performace_v3.patch

Alexander Meindl, 2020-05-12 16:21

View differences:

app/models/time_entry_query.rb
147 147
      includes(:activity).
148 148
      references(:activity).
149 149
      left_join_issue.
150
      where("#{Enumeration.table_name}.project_id = #{TimeEntry.table_name}.project_id" \
151
            " AND #{Enumeration.table_name}.project_id = #{Project.table_name}.id" \
152
            " OR #{Enumeration.table_name}.project_id IS NULL")
150 153
      where(statement)
151 154
  end
152 155

  
(3-3/5)