Name |
Last commit
|
Last update |
---|---|---|
.. | ||
filter | ||
pipeline | ||
reference_parser | ||
cross_project_reference_spec.rb | ||
filter_array_spec.rb | ||
querying_spec.rb |
BigW Consortium Gitlab
Reduce SQL query counts in IssueReferenceFilter ## What does this MR do? This MR adds a preparation phase for reference filters that allows them to prepare/create data structures used while iterating over HTML nodes. In this particular case the preparation phase is used for issue references to greatly cut down the amount of queries executed to get projects/issues for Markdown references. ## Are there points in the code the reviewer needs to double check? No. ## Why was this MR needed? Rendering Markdown containing issue references would run at most two queries for every issue reference: one to get the project and one to get the issue from said project. When rendering Markdown with lots of issue references this would result in _a lot_ of queries being executed. ## What are the relevant issue numbers? #18042 See merge request !4410
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
filter | Loading commit data... | |
pipeline | Loading commit data... | |
reference_parser | Loading commit data... | |
cross_project_reference_spec.rb | Loading commit data... | |
filter_array_spec.rb | Loading commit data... | |
querying_spec.rb | Loading commit data... |