Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4670

Optimize excessive data load in kpiAction

XMLWordPrintable

    • Medium
    • Hide
      7.24.0: Additional fixes regarding statistics performance
      7.23.3: Reduced KPI window loading time - further improvements will follow
      Show
      7.24.0: Additional fixes regarding statistics performance 7.23.3: Reduced KPI window loading time - further improvements will follow

      Problem

       The code in editor_TaskController::kpiAction

      $rows = $this->taskViewDataProvider->getTaskList( 
      $this->authenticatedUser, 
      $this->adjustFilter($this->entity->getFilter()), 
      (int) $this->getParam('start', 0), 
      (int) $this->getParam('limit', 0), 
      );

      is the wrong for that use case. It loads internally much to much additional data.

       

      Solution

      We need something similar to

      getProjectIdList

      which only loads the affected project IDs.
      Or in other words:

      getTaskList

      without the internally called buildTaskView

            volodymyr@mittagqi.com Volodymyr Kyianenko
            volodymyr@mittagqi.com Volodymyr Kyianenko
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: