Read max score for all players in one shot as well, with a new query and an index...
[ccbs] / sql / ccbs.sql
index 4a9f0a8..9f0cdea 100644 (file)
@@ -55,6 +55,7 @@ CREATE TABLE songratings (
 
        PRIMARY KEY (song, machine, playmode, difficulty)
 );
+CREATE INDEX songratings_feetrating ON songratings ( feetrating );
 
 CREATE TABLE players (
        player SERIAL PRIMARY KEY,