Skip to content

Twice slower with dcea02c  #67

Description

@theirix

Hello!

I am using the plugin for a large Redmine installation. Latest commit dcea02c introduced a major slowdown for grouping by issues. Is this patch just a refactoring? Could we safely revert it?

A test report by administrator takes 65 seconds with dcea02c but if I reverse this chunk in a issue_time_entries_for_all_users method then it takes just 27 seconds (surely 27 seconds is not a best result but it is a different story).

It is a strange regression. I think eager_load does not perform well and a simple include with join is faster. Please check attached ruby-prof stack profiles if you need extra information.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions