(#2861) - Use a query to find update_seq instead of manually tracking it