Skip to content

Compute or cache project meta data on program start #1375

Description

@aharwood2

Project metadata is stored in the DB for speed, so that the calculations are only done when a dependent entity changes rather than every time the value is displayed. However, sometimes, the logic of computation is changed in a patch (e.g. fix for #1318), but the DB values are not updated via a migration because calculation is done in code. One option here would be to add a method call on app start-up that refreshes the computed values in the DB.

  • Identify computed values that are stored in the DB
  • Call various calculations across the full data on app start up to update the DB values

Metadata

Metadata

Assignees

Labels

database 🔥Relates to the DB itself or modification of the schemafoundations 🧰Relates to infrastructure or framework

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions