You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(relationships): drop Attribute::fromDocument allocation in hot loops
afterDocumentCreate/Update and populateDocuments each instantiated a
new Attribute object per relationship per call just to read .key (and
sometimes .type), which the underlying Document already exposes via
getAttribute(). For populateDocuments specifically this fired on every
relationship across every batch traversal at every depth.
Replace with direct getAttribute('key', $relationship->getId()) and
the existing Attribute::isRelationship static helper.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments