Imposta come indici della tabella i campi su cui richiami il DISTINCT.