Commit dc0e455f authored by Stan Hu's avatar Stan Hu

Fix N+1 queries loading milestones when exporting CSVs

During exporting of CSVs, we weren't preloading milestones, so every
issue had to load its related milestones.
parent aec60d60
......@@ -34,7 +34,7 @@ module Issues
private
def associations_to_preload
%i(author assignees timelogs)
%i(author assignees timelogs milestone)
end
def header_to_value_hash
......
---
title: Fix N+1 queries loading milestones when exporting CSVs
merge_request: 49429
author:
type: performance
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment