Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usage of taxa thesaurus family over occurrence family (#1675)
* usage of taxa thesaurus family over occurrence family * Modifications - "ts.taxauthid = 1" needs to be added to the where condition or the recordset would return duplicate records for each taxonomic thesaurus defined within taxstatus table (e.g. there are 4 defined within SEINet). I suppose not including it would not be a big problem since the occid would be the same for each record, and thus the output data array would just copy over existing data. However, it would iterate through more records than needed. Another solution would be to change the statement to "SELECT DISTINCT...", but this can significantly slows down an ordered query. - Since "ts.taxauthid = 1" is added to the where clause, the getTableJoins function should always add the taxstatus left join, thus we can leave out that test. * Minor fix to previous submit --------- Co-authored-by: Edward Gilbert <[email protected]>
- Loading branch information