Project

General

Profile

« Previous | Next » 

Revision 5916

inputs/.TNRS/schema.sql: Removed no longer needed tnrs_accepted_names index, now that the accepted names have been split into a separate table

View differences:

inputs/.TNRS/schema.sql
50 50
WITH (
51 51
  OIDS=FALSE
52 52
);
53
COMMENT ON TABLE tnrs
54
  IS 'tnrs_accepted_names sorts accepted names first (note that false sorts before true). Accepted names are defined as names that scrub to themselves.
55

  
56
Accepted names must be processed before any names that resolve to them, because the entry for the accepted name contains all the ranks parsed out but the resolved name of another entry contains just some ranks and the taxonomic name. Column-based import will do this automatically when the total # of rows is <= the partition_size (because _taxonconcept_set_matched_concept_id()''s accepted taxonconcept is created after the main taxonconcept), but TNRS has more rows than this so sorting is needed to ensure that all the accepted names are processed in the first partitions.';
57

  
58
CREATE INDEX tnrs_accepted_names
59
  ON tnrs
60
  USING btree
61
  ((NOT "Name_submitted" = NULLIF(:schema.array_to_string(ARRAY[NULLIF("Accepted_name_family", 'Unknown'::text), "Accepted_name", "Accepted_name_author"], ' '::text), ''::text)) , "Name_submitted" );
62
ALTER TABLE tnrs CLUSTER ON tnrs_accepted_names;

Also available in: Unified diff