Advanced
Performance Notes
Over-fetch buffer, eager-loading, index tips.
- Every source batch-loads; no N+1 in the core path. Use
->with([...])onRelatedModelSourceif your renderer/title resolver reads relations. - Pagination over-fetches by
perPage × (page + pagination_buffer)per source so dedup/filtering stays correct at higher pages. Tunepagination_bufferif your sources rarely collide. get()is capped at 10 000 entries. For unbounded history, paginate.- Add the
['subject_type', 'subject_id', 'created_at']compound index onactivity_log.