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

Fix article board group N+1 query problem #409

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Conversation

injoonH
Copy link
Member

@injoonH injoonH commented Aug 10, 2023

Join boardgroup table when selecting articles:

SELECT ...
FROM `core_article`
  ...
    INNER JOIN `core_board`
      ON (`core_article`.`parent_board_id` = `core_board`.`id`)
    LEFT OUTER JOIN `core_boardgroup`
      ON (`core_board`.`group_id` = `core_boardgroup`.`id`)
...

@injoonH injoonH added the bug Something isn't working label Aug 10, 2023
@injoonH injoonH self-assigned this Aug 10, 2023
@injoonH injoonH merged commit fe0caab into develop Aug 10, 2023
@injoonH injoonH deleted the fix/article-n-plus-one branch August 10, 2023 08:25
@injoonH injoonH mentioned this pull request Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant