What's the most efficient way to handle mass bans?
Right now looping through all bannable models and then applying the ban is making 3 queries each (So if I was to ban say 1k users, that's 3k queries and isn't good TBH). So if I was to do mass ban, then it's not really efficient.
So I wanna know if there's a better way to achieve this?
What's the most efficient way to handle mass bans?
Right now looping through all bannable models and then applying the ban is making 3 queries each (So if I was to ban say 1k users, that's 3k queries and isn't good TBH). So if I was to do mass ban, then it's not really efficient.
So I wanna know if there's a better way to achieve this?