Improve performance in BannedIPRepository
dsevillamartin opened this issue · 2 comments
dsevillamartin commented
Currently, the code plucks the IP addresses from the user's posts and removes duplicates to retrieve a user's IP addresses.
This would most likely be a big performance hit in a big forum with tons of posts.
Performance can probably also be improved when seeing what users have an IP address, as posts with that IP address are looped, plucked users, removed duplicates, and filtered to make sure the users cannot ban IPs.
dsevillamartin commented
Looks to be done.
luceos commented
Really what changed? 😅👌