counterdata-network / story-processor

Story discovery engine for the Counterdata Network. Grabs relevant stories from various APIs, runs them against bespoke classifier models, post results to a central server.
Apache License 2.0
0 stars 2 forks source link

perf(alembic): add new alembic migration for updated indexes #43

Closed yashYJ621 closed 1 year ago

yashYJ621 commented 1 year ago

This commit contains new revision 'upgrade_composite_index' in the alembic migration scripts

Changes

The changes in this commit involve adding new composite indexes to enhance performance of Key Dashboard Queries in the Alembic migration scripts. The previous indexes were replaced with composite indexes. Specifically, the following new indexes were added:

Merge requirement checklist

Migration Validation: Confirm that the migration works as expected and doesn't cause any issues in the database.

Note : This potentially fixes speed up key queries against story-processor db issue in our Dashboard Repository