I would use a technique like this sparingly. It looks to be the "web request" equivalent of an n+1 query.
Imagine you have a table of results and each one is taking time to render. You add this for each row, but you only test it locally with a few rows. In production, maybe that table has hundreds of rows.
Imagine you have a table of results and each one is taking time to render. You add this for each row, but you only test it locally with a few rows. In production, maybe that table has hundreds of rows.
You've just DOSed your server.