|
Praveen-
It looks like your query is retrieving the whole set of users and then
iterating in Java to see if any of them match the username/password the user
entered. Why would you do that, rather than simply:
SELECT * FROM users WHERE username = '<username entered by user>'
AND password = '<password entered by user>';
and see if any rows are returned. If there are no rows, the
username and/or password was wrong. This way
you don't have to deal with so much data, making it potentially much faster and
less memory intensive.
-jmc
|
Title: Message
- Login Authentication against database... Praveen Potineni
- Re: Login Authentication against database... Chris Tucker
- Re: Login Authentication against database... Joe Cheng
- Re: Login Authentication against database... Praveen Potineni
- Re: Login Authentication against databas... Chris Tucker
- Re: Login Authentication against dat... Praveen Potineni
- Re: Login Authentication against databas... David Nguyen
- Re: Login Authentication against database... Margaret Fisk
- Re: Login Authentication against database... Miao, Franco CAWS:EX
- Re: Login Authentication against database... Joe Cheng
- Re: Login Authentication against database... Syed Rehman
- Re: Login Authentication against database... Miao, Franco CAWS:EX
- Re: Login Authentication against database... Chris Tucker
