We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
harmean
I've noticed that the public.harmean function can be around 3x slower than doing e.g.
public.harmean
COUNT(*) / SUM( 1 / var )
See also, on literally this exact same topic: https://dba.stackexchange.com/questions/243804/user-defined-harmonic-mean-function-performs-worse-than-query-in-postgresql-9-6
Is it possible that the numeric type is to blame?
However, calculations on numeric values are very slow compared to the integer types, or to the floating-point types described in the next section.
from https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL
The text was updated successfully, but these errors were encountered:
Nate-Wessel
No branches or pull requests
I've noticed that the
public.harmean
function can be around 3x slower than doing e.g.See also, on literally this exact same topic:
https://dba.stackexchange.com/questions/243804/user-defined-harmonic-mean-function-performs-worse-than-query-in-postgresql-9-6
Is it possible that the numeric type is to blame?
from https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL
The text was updated successfully, but these errors were encountered: