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

Speed up getting assets for asset switcher #561

Closed
wants to merge 1 commit into from

Conversation

jasperges
Copy link
Contributor

What's changed?

When querying the assets to populate the asset switcher a database call was made for every asset. If you have lots of assets this can really add up and take quite some time (for me roughly 30 seconds for 2000 assets).

This change does only 2 database calls and then does the filtering afterwards. In my case this reduces the time taken to around 3 seconds for 2000 assets.

For every asset a database call was made. If you have lots of assets
this can really add up and take quite some time (for me roughly 30
seconds for about 2000 assets).
This change does only 2 database calls and then does the filtering
afterwards. This reduces the time taken to around 3 seconds for about
2000 assets.
@tokejepsen
Copy link
Collaborator

@iLLiCiTiT has worked on the same thing.

@jasperges
Copy link
Contributor Author

Whoops, forgot to check other PR's first... will have a look at #551.

@jasperges
Copy link
Contributor Author

Okay, sorry for the noise and nevermind. #551 works fine for me. Closing this one.

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