A
Anonymous
Guest
I'm rewriting a whole website...and now I came a cross a little piece that I have to verify if a username already exists or not. The website has got more than 25000 members...what takes less resources:
to just select 'em all in one query or to only select the ones that start with the first letter of the username in question? (e.g. a%)?
Does anyone know how I could test these things? How to find out how much cpu power/memory it uses
It's a massive website so it's really important that it uses as less possible ![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
to just select 'em all in one query or to only select the ones that start with the first letter of the username in question? (e.g. a%)?
Does anyone know how I could test these things? How to find out how much cpu power/memory it uses