Skip to content

Slow admin dashboard because auto populates all the queries #4775

@abdonrd

Description

@abdonrd

Describe the bug

As my project has grown, I have seen the administration panel become slower and slower. Today I found one of the reasons: The auto population.

For example, if I have a Post model with an authors field.
And this authors field is a relationship with the User model.
When I create a new post, and search users in the authors dropdown, the query get all the user information, with their auto populated relations. And this is crazy! 😅

And it gets worse now when my User model has more than 10 relationships.

Expected behavior

Just request the minimum information: they key to show in the dropdown selector.

System

  • Node.js version: v12
  • NPM version: v6
  • Strapi version: v3.0.0-beta.18.2
  • Database: MongoDB
  • Operating system: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: enhancementIssue suggesting an enhancement to an existing featureseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: core:content-managerSource is core/content-manager package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions