optimize history search (invoice rending time for svc_ records with tons of changes), RT#32190
Merge branch 'master' of git.freeside.biz:/home/git/freeside