tagbase / tagbase-server

tagbase-server is a data management web service for working with eTUFF and nc-eTAG files.
https://oiip.jpl.nasa.gov/doc/OIIP_Deliverable7.4_TagbasePostgreSQLeTUFF_UserGuide.pdf
Apache License 2.0
7 stars 2 forks source link

Address duplication in metadata table #237

Open lewismc opened 1 year ago

lewismc commented 1 year ago

Each time a tag submission is made, we INSERT into metadata regardless of whether the metadata (for the tag) already exists. This is a bug and duplicates metadata meaning that the table grows in an unnecessary manner. We should perform a lookup to determine whether the metadata already exists. Only perform an insert if it does not.