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
Calling .revision always executes a database query, regardless of whether the audits have been preloaded, because audits_to uses the to_version scope on the audits association, which always goes back to the database to do the <= check.
Calling
.revision
always executes a database query, regardless of whether the audits have been preloaded, becauseaudits_to
uses theto_version
scope on theaudits
association, which always goes back to the database to do the<=
check.This means the following code:
Will generate N+1 queries as it reconstructs each
Post
atrevision(1)
--- even though the posts were preloaded.It would greatly benefit performance if
audits
could be preloaded, and all the Auditor methods would do in-memory operations if possibleThe text was updated successfully, but these errors were encountered: