fix post record n+1 issue