Use keys to improve query performance

Primary keys and foreign keys, while used primarily for validation purposes, can also improve database performance.

 Example