You must log in or register to comment.
Yeah, getting the whole table from the db and filtering it in the code is always a bad approach. Put the filter in the db query.
I never had a issue with loops. If I feel something is off, I terminate, check code, and fix it.


