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 5c47605..b687eef 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