I am just designing a database with email addresses (for unsubscribing option). Because IMHO indexing a larger varchar field is not a best idea so I am thinking about a creating int hashcode field, filling it with hashcodes of email addresses and creating index on this field instead of email field directly. This way the lookup in database would look like:
SELECT TOP 1 NULL FROM tbUnsub WHERE emailhash=-5421215 AND emailaddress='just.a@sample.com'
The question is, if it will need less data (because of missing index on larger varchar field) and if it will work faster because of searching in int field.
Thank you for your help in advance!