Typescript Select Distinct Postgresql Vs Mysql Speed