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

Optimizing sql and improved Log data #1883

Merged
merged 18 commits into from
Jun 23, 2023
Merged

Optimizing sql and improved Log data #1883

merged 18 commits into from
Jun 23, 2023

Conversation

ildyria
Copy link
Member

@ildyria ildyria commented Jun 18, 2023

  • add some pre-loading on access_permissions
  • add support for EXPLAIN for mysql directly in the Logging system.

This is not yet a silver bullet but this will allow better investigations of why such slowdown when we have a lot of albums.
And this remove the n+1 query problem we had.

image

@ildyria ildyria force-pushed the wip-optimizing-sql branch from f3db51d to 7058eff Compare June 21, 2023 07:35
@ildyria ildyria requested a review from a team June 21, 2023 20:50
@ildyria ildyria marked this pull request as ready for review June 21, 2023 20:50
@ildyria ildyria self-assigned this Jun 21, 2023
@ildyria ildyria added the Review: easy Easy review expected: probably just need a quick to go through. label Jun 21, 2023
@ildyria ildyria changed the title Optimizing sql Optimizing sql and improved Log data Jun 21, 2023
@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #1883 (600a376) into master (6da4fd0) will decrease coverage by 2.23%.
The diff coverage is 30.85%.

Additional details and impacted files

@ildyria ildyria merged commit 0525fa8 into master Jun 23, 2023
@ildyria ildyria deleted the wip-optimizing-sql branch June 23, 2023 13:13
ildyria added a commit that referenced this pull request Jun 24, 2023
* optimizing sql
* remove 2 relations, make sure that permissions are preloaded to avoid n+1 problem
* add Explain to mysql queries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review: easy Easy review expected: probably just need a quick to go through.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants