Project

General

Profile

« Previous | Next » 

Revision 9855

inputs/GBIF/raw_occurrence_record_plants/postprocess.sql: Remove institutions that we have direct data for: added rerun time (~0 thanks to index, so no problem doing the DELETE each time postprocess.sql is run)

View differences:

inputs/GBIF/raw_occurrence_record_plants/postprocess.sql
3 3
SELECT create_if_not_exists($$CREATE INDEX raw_occurrence_record_plants_institution_code ON raw_occurrence_record_plants ("specimenHolderInstitutions")$$);
4 4

  
5 5
-- Remove institutions that we have direct data for
6
-- rerun time: ~0 ("Time: 4.924 ms") thanks to index
6 7
DELETE FROM :table
7 8
WHERE "specimenHolderInstitutions" IN (
8 9
      'ACAD'

Also available in: Unified diff