Short Version
If I have a statement like
SELECT COUNT(id) FROM users WHERE username = 'something' AND password = 'hashed password'
if username column of the row doesn't match 'something' will mysql check password column too or it will check username column of the next row?
More Detail
I'm designing the backend logic for signin system. If mysql check password column (which is a relatively long text) for every user it might put pressure on the database.
If that's the case, I can get hashed password from "WHERE username = 'something' " and do the comparison with backend language but if mysql skips the password column when username is not matched then everything is ok.