cc-archive / cccatalog

[PROJECT TRANSFERRED] Mapping the commons towards an open ledger and cc search.
https://github.com/WordPress/openverse-catalog
MIT License
63 stars 60 forks source link

[Infrastructure] Set `new_image` to be the `image` table #433

Closed mathemancer closed 4 years ago

mathemancer commented 4 years ago

Current Situation

429 created a new table new_image with a modified and improved schema over the old image table. The service layer expects to ingest the image table.

Suggested Improvement

Now, having verified that new_image seems to work for all the upstream ingestion steps, we need to swap the table names around so that the service layer will attempt to ingest from the new table. The necessary swaps are:

This involves

Benefit

We'll finally be ingesting the new deduplicated data with the new schema into the service layer!

Alternatives

We could change the service layer to point to new_image for its ingestion, but that would be confusing (or amusing) in the future.

Why is this old table called new_image ? -- Me, 3 years hence