gitlab-org--gitlab-foss/lib/banzai
Douwe Maan 84632f0aff Merge branch 'banzai-issue-filter-queries' into 'master'
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
2016-06-16 20:49:13 +00:00
..
filter Merge branch 'banzai-issue-filter-queries' into 'master' 2016-06-16 20:49:13 +00:00
pipeline Fix description and GFM pipelines conflicting 2016-06-13 13:06:40 +01:00
reference_parser Eager load project relations in IssueParser 2016-06-15 15:30:34 +02:00
cross_project_reference.rb Prevent circular reference error in Banzai 2016-01-14 11:30:28 +01:00
filter.rb Remove redundant requires from Banzai files 2016-03-24 13:23:47 -04:00
filter_array.rb Add FilterArray class to Banzai 2016-03-01 15:54:35 -05:00
pipeline.rb Prevent circular reference error in Banzai 2016-01-14 11:30:28 +01:00
querying.rb Optimize CSS expressions produced by Nokogiri 2015-12-31 15:46:47 +01:00
reference_extractor.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
reference_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
renderer.rb Instrument Banzai code 2016-04-11 17:43:12 +02:00