Project

General

Profile

« Previous | Next » 

Revision 8111

inputs/FIA/*/postprocess.sql: Cluster tables by their *.unique index for faster joins

View differences:

postprocess.sql
17 17
]::functions.col_cast[]);
18 18

  
19 19
SELECT functions.create_if_not_exists($$ALTER TABLE "SUBPLOT" ADD CONSTRAINT "SUBPLOT.unique" UNIQUE (".STATECD", ".UNITCD", ".COUNTYCD", ".PLOT", ".INVYR", ".SUBP")$$);
20
SELECT functions.cluster_once(:table_str, '"SUBPLOT.unique"');

Also available in: Unified diff