I have a rather large table with indexing on the department ID. Some places I just use the employee ID to lookup records. Should I change these to Where dept_id=4 and emp_id=15329 instead of just Where emp_id?
Because emp_id is the primary key. I suppose any table is indexed on the primary key but if dept_id reduces the bulk of records for the key-lookup... is there a Yes/No answer for this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.