- ID
- f4d3cd8c-503c-4217-b090-97d0b5df00d9
- ROAM_ALIASES
- ENG-13866
ENG-13866 - Part 2 of optimizing ff.mods.high_fives.views.save
- tags :: Jira 15Five 15Five Project: Optimization for 3K User Company
- source :: https://15five-dev.atlassian.net/browse/ENG-13866
Description
The view should be ready for 3k company to show data quickly with a low amount of queries.
More data could be found at https://15five.quip.com/xt4jAXaO9HDq#aTOACA2AOWe
Development Notes
- Note taken on
So, I've narrowed down the slowest part of the request to the generation of email temlates. I'm not sure exactly what makes it slow, but I don't think it's related ot queries. I can reduce the time the view for saving high fives takes by 10 seconds if I just don't render the template.
- The first part of this ticket moved all the user mention and notification processing into a celery task. That task, however, is still very slow. It takes over 8000k and around 60 seconds to complete on a local server. Some ideas were already initiated and they can be found in a draft branch – https://github.com/15five/fifteen5/compare/dev...ENG-12288-optimize-high-five-save-view--test
- Note taken on
This is the [[file:~/src/github.com/15five/fifteen5/ff/mods/high_fives/utils.py::mention_utils.process_user_mentions(][Source of 7K queries]] ...