Question : Optimize Query on Table with million records

I have a database for a photographer that has almost a million records and our queries seem to be searching all 900,000 records each time it is looking for a photo. Are there db optimization rules that I need to be sure my programmers are following so that we put less stress on the server?

Answer : Optimize Query on Table with million records

as long as it is coupled with HTTPS (which is by default) it is secure
Random Solutions  
 
programming4us programming4us