Project

General

Profile

« Previous | Next » 

Revision 8099

inputs/FIA/TREE/postprocess.sql: Added index on columns that join to parent tables

View differences:

postprocess.sql
11 11

  
12 12
-- ("STATECD", "UNITCD", "COUNTYCD", "PLOT", "INVYR", "CONDID", "SUBP", "TREE", "STATUSCD") is not unique
13 13
SELECT functions.create_if_not_exists($$ALTER TABLE "TREE" ADD CONSTRAINT "TREE.unique" UNIQUE ("TREE.CN")$$);
14

  
15
SELECT functions.create_if_not_exists($$CREATE INDEX "TREE.parent" ON "TREE" (".STATECD", ".UNITCD", ".COUNTYCD", ".PLOT", ".INVYR", ".CONDID", ".SUBP")$$);

Also available in: Unified diff