Skip to content

Conversation

aldavidson
Copy link
Contributor

An 'Under the hood' PR which adds a DB table, model class and tests for ReportingAPI::VaccinationEvents.

This table is intended to store a denormalized copy of the essential fields from the (complex) Mavis model around vaccinations, in a form which is much more suitable for analytic queries - a single table with many columns.

This is admittedly space inefficient, but pretty common standard practice for scalable reporting functions, and a convenient way of separating the operational and analytical workloads. In future this table could well end up being moved to a separate datasource (another RDS instance, or Redshift if it gets v. large, etc). For now, it wlll be ok in the standard datasource, but the move can easily be done per-model class with a one-liner plus some config.

This model is not populated or used anywhere yet - separate PRs will do that.

@aldavidson aldavidson changed the base branch from main to next September 3, 2025 12:06
@aldavidson aldavidson force-pushed the add-reporting-api-vaccination-event-table-and-model branch 3 times, most recently from 9cf2151 to 5bc861b Compare September 3, 2025 13:20
@thomasleese thomasleese added refactor Improving maintainability feature New functionality labels Sep 3, 2025
@aldavidson aldavidson marked this pull request as ready for review September 3, 2025 13:37
@aldavidson aldavidson requested a review from a team as a code owner September 3, 2025 13:37
@aldavidson aldavidson force-pushed the add-reporting-api-vaccination-event-table-and-model branch from c2f3040 to 4e6f42b Compare September 3, 2025 15:41
@aldavidson aldavidson force-pushed the add-reporting-api-vaccination-event-table-and-model branch from 5ee373c to 94b7f70 Compare September 4, 2025 07:51
@aldavidson aldavidson force-pushed the add-reporting-api-vaccination-event-table-and-model branch from c6c6cb3 to 5e4305d Compare September 4, 2025 08:46
@aldavidson aldavidson force-pushed the add-reporting-api-vaccination-event-table-and-model branch from 5e4305d to ed11899 Compare September 4, 2025 08:48
Copy link

sonarqubecloud bot commented Sep 4, 2025

@aldavidson aldavidson merged commit 731021d into next Sep 4, 2025
13 checks passed
@aldavidson aldavidson deleted the add-reporting-api-vaccination-event-table-and-model branch September 4, 2025 09:09
aldavidson pushed a commit that referenced this pull request Sep 4, 2025
…ental remnant from another branch that crept in during final rebasing of #4484
murugapl pushed a commit that referenced this pull request Sep 10, 2025
…ental remnant from another branch that crept in during final rebasing of #4484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality refactor Improving maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants