gitlab-org--gitlab-foss/lib/banzai/reference_parser
Yorick Peterse fce675d7fc
Eager load project relations in IssueParser
By eager loading these associations we can greatly cut down the number
of SQL queries executed when processing documents with lots of
references, especially in cases where there are references belonging to
the same project.

Since these associations are so specific to the reference parsing
process and the permissions checking process that follows it I opted to
include them directly in IssueParser instead of using something like a
scope. Once we have a need for it we can move this code to a scope or
method.
2016-06-15 15:30:34 +02:00
..
base_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
commit_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
commit_range_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
external_issue_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
issue_parser.rb Eager load project relations in IssueParser 2016-06-15 15:30:34 +02:00
label_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
merge_request_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
milestone_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
snippet_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
user_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00