It takes 4 spaces or some backticks to have this code displayed as code in the changelog.
Fix formatting of my name in the changelog, and given Aaron credit for b483a0d2a75b
Merge pull request #10998 from Empact/tidy-changelog

Fix some activerecord changelog code to be displayed properly as code [ci skip]
do not load all child records for inverse case

currently `post.comments.find(Comment.first.id)` would load all
comments for the given post to set the inverse association.

This has a huge performance penalty. Because if post has 100k
records and all these 100k records would be loaded in memory
even though the comment id was supplied.

Fix is to use in-memory records only if loaded? is true. Otherwise
load the records using full sql.

Fixes #10509