Skip to content

FOUR-9341 Start a Process has a large delay because of large media table#4993

Merged
caleeli merged 1 commit into
FOUR-8177from
FOUR-9341
Jul 13, 2023
Merged

FOUR-9341 Start a Process has a large delay because of large media table#4993
caleeli merged 1 commit into
FOUR-8177from
FOUR-9341

Conversation

@caleeli
Copy link
Copy Markdown
Contributor

@caleeli caleeli commented Jul 13, 2023

Issue & Reproduction Steps

During the start of a process, the model Media is selected by model_id, for example:

select * from `media` where `model_id` in (342393);

For a large amount of media files this query takes a while.

As a developer I would like to have a index by model_id to improve the performance of the query.

Solution

  • Add an Index by model_id in table media.

How to Test

Start any process.

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

@caleeli caleeli requested a review from julceslauhub July 13, 2023 15:09
@processmaker-sonarqube
Copy link
Copy Markdown

SonarQube Quality Gate

Quality Gate failed

Failed condition 0.0% 0.0% Coverage on New Code (is less than 80%)

See analysis details on SonarQube

Copy link
Copy Markdown
Contributor

@julceslauhub julceslauhub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@caleeli caleeli changed the base branch from develop to FOUR-8177 July 13, 2023 18:04
@caleeli caleeli merged commit 7755498 into FOUR-8177 Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants