Python Numpy Aggregate Functions Postgresql Vs Mysql Performance