Skip to content

FOUR-3612: Review and improve sql query request_user_permissions#3862

Merged
boliviacoca merged 1 commit into
4.1.20from
feature/FOUR-3612
Jun 29, 2021
Merged

FOUR-3612: Review and improve sql query request_user_permissions#3862
boliviacoca merged 1 commit into
4.1.20from
feature/FOUR-3612

Conversation

@danloa
Copy link
Copy Markdown
Contributor

@danloa danloa commented Jun 29, 2021

Fixes https://processmaker.atlassian.net/browse/FOUR-3612

The query was modified to use a join and the user_id index to avoid the subquery that usually is slower
Before the modification the MySql planner didn't use the user_index:

image

After the modification the index is used:
image

@danloa danloa marked this pull request as ready for review June 29, 2021 14:01
@boliviacoca boliviacoca merged commit e3c4dbc into 4.1.20 Jun 29, 2021
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.

3 participants