Yep, you’re doing it right! And you’re correct that doing this in the page is much faster than doing an API (backend) workflow on a list or scheduling a recursive workflow.
(For a talky example of how one might do that, you could check out my List Shifter video about shopping carts which talks about List Shifter and related backend plugin List Popper.)