Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor schedule action in distributions_controller for better preformance #4509

Merged
merged 2 commits into from
Jul 19, 2024

Commits on Jul 12, 2024

  1. Refactor schedule action in distributions_controller for better p…

    …erformance
    
    - Separated the handling of JSON and HTML requests. The instance variable is not used in the HTML view, eliminating unnecessary data loading.
    - Implemented JSON-specific requests to leverage the `start` and `end` parameters from the FullCalendar library. This restrict tags the fetched distributions to the specified dates instead of all historical records.
    - Resolved the N+1 query issue by eager loading the associated partners with the distributions.
    - Add an index on issued_at to speed up the filtering on distributions
    grantmca committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    7905eb5 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    833f8c4 View commit details
    Browse the repository at this point in the history