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

Optimization of AttachmentInline #413

Merged
merged 1 commit into from
Oct 7, 2022
Merged

Conversation

petrprikryl
Copy link
Contributor

Preventing iteration over all attachments in database.

We have thousands of attachments in our big project and the inlined_attachments for loop is very slowing the email detail in admin. This would help. But I think it would be much better to filter inlined_attachments directly over DB. I will make new PR for that because it will be much more "breaking" than this compatible quick fix PR.

preventing iteration over all attachments in database
@selwin selwin merged commit 81b93bb into ui:master Oct 7, 2022
@selwin
Copy link
Collaborator

selwin commented Oct 7, 2022

Thanks!

@petrprikryl petrprikryl deleted the optimization branch October 19, 2022 21:23
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