Closed smnorris closed 4 years ago
Species codes are easier to work with than ids, but by storing the ids in the array we can use https://www.postgresql.org/docs/12/intarray.html for indexed (instant) searches - I think this is worth the tradeoff.
Turns out the species_codes array is super useful for map labels. Keep species_ids but add species_codes back into output tables/views.
species_ids
species_codes
Species codes are easier to work with than ids, but by storing the ids in the array we can use https://www.postgresql.org/docs/12/intarray.html for indexed (instant) searches - I think this is worth the tradeoff.