Database feature : INDEX field.
In order to optimise your queries, you can set some important fields as index. It means that they will be stored in an index table for searching faster on it.
For instance, if you store a list of products codes, define the code field as INDEX it will be faster to search on it.
An index field becomes automatically unique