Pykex
05-09-2009, 07:08 PM
I was just wondering: How fast is SUM? Let's say I have a table: ratings.
This table logs the user's IP and also their rating... and also the ID of the "post."
If there are over 2000 ratings (i.e. 2000+ entries) and there are at least 100 ratings for each post ID, how fast/slow will SUM be?
Also, will indexing the `ratings` column speed up the SUM functionality?
This table logs the user's IP and also their rating... and also the ID of the "post."
If there are over 2000 ratings (i.e. 2000+ entries) and there are at least 100 ratings for each post ID, how fast/slow will SUM be?
Also, will indexing the `ratings` column speed up the SUM functionality?