15
MrPlow
8y

Previous dev needed to validate new user names as unique. His solution? Query Top 1000 rows and do a string comparison. Totally scalable, amirite?

Comments
  • 0
    AUGH!
  • 3
    I'm not just posititve I'm HIV positive that the code scales well. Also make sure the user input isn't escaped or checked for validity to ensure maximum speed.
  • 0
    This all came up because the password validation was more than lacking.
  • 0
    Wow! My sphincter just tightened a wee bit! 😶
  • 1
    It's only a 1000 rows. Might as well do it manually. ;)
Add Comment