Optimize bootstrap operations using bulk inserts and caches
Open
@lakshmi-kannan is already working on this.
Since Oct 17, 2018.
complexity:hard
enhancement
performance
refactor
- Dominant language
- Python
- Stars
- 6.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
Right now, content registration can be slow since we pretty much register one unit at a time. We could potentially speed this up by using mongo bulk operations. This might help address https://github.com/StackStorm/st2/issues/3686
Also, in cases like https://github.com/StackStorm/st2/pull/4388#discussion_r225938200, we could potentially cache dependent content upfront so we don't do one read query per write query.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.