Draft: feat: preload merge_request_commits_metadata association
Relates to issue #527235
This MR was created by Duo in Session 1108236
Changes
- Add preloading for
merge_request_commits_metadataassociation to reduce N+1 SQL queries - Update
MergeRequest.preload_latest_diff_committo include commit metadata preloading - Optimize
MergeRequest#recent_commitswith conditional preloading - Enhance
MergeRequestDiff#commit_shasto prevent N+1 queries when accessing SHA data - Update
MergeRequest#committersto preload user information efficiently - Optimize
Banzai::Filter::References::MergeRequestReferenceFilter#find_commit_by_shafor commit lookups - Ensure plan-time partition pruning by including
project_idin preload conditions