This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Add individual command logging for index/constraint application step #752
Labels
💻 aspect: code
Concerns the software code in the repository
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
🟧 priority: high
Stalls work on the project or its dependents
💾 tech: postgres
Requires familiarity with PostgreSQL
🐍 tech: python
Requires familiarity with Python
Description
As part of the investigation around the API response time jumping dramatically during a data refresh, we identified that the index & constraint application step specifically was causing the API degradation. I suspect that there may be a single index/constraint application that is causing the slowness, rather than the entire set of
ALTER
s. In order to test this hypothesis, we need accurate logging for when each step is run.Specifically, these two query executions should be split up into the individual alters, and each one should be logged when it is run:
openverse-api/ingestion_server/ingestion_server/ingest.py
Line 352 in 5435e0e
openverse-api/ingestion_server/ingestion_server/ingest.py
Line 359 in 5435e0e
Additional context
Similar logging was added for the go-live step in #415
Implementation
The text was updated successfully, but these errors were encountered: