Typically, the answer is many milliseconds. select distinctequivalent to execution group byfor all columns. It is unlikely that you have an index in all columns, so an index will usually not be very useful.
, , distinct primary key. , .
, , select distinct, .