resolving n+1 problem on transactions view