]> git.rm.cloudns.org Git - xonotic/xonstatdb.git/commitdiff
The games table gets a gin index on players.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 24 Dec 2014 18:28:59 +0000 (13:28 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 24 Dec 2014 18:28:59 +0000 (13:28 -0500)
scripts/gen_partitions.shl

index 5c476053b68ea58393d8b6c4d06841b68a3340df..b687eef6167483ae13500da58678c86482eff495 100755 (executable)
@@ -40,6 +40,12 @@ do
         then
             printf "CREATE INDEX %s_%s%s_ix002 on %s_%s%s(game_id);\n" $table $year $qtr $table $year $qtr
         fi
+
+        if [[ $table = "games" ]]
+        then
+            printf "CREATE INDEX %s_%s%s_ix002 on %s_%s%s using gin(players);\n" $table $year $qtr $table $year $qtr
+        fi
+
         printf "\n"
     done
 done