Skip to content

store previous release in target_release to avoid big scans #9115

@davepacheco

Description

@davepacheco

There are several places where we want to know both the current release and the previous one:

It's tempting to just select the last two rows of the target_release table, but that doesn't work because you can set the target release to itself after a MUPdate.

I'm adding a datastore function to do this in #9107 but it requires scanning back a bit, and in principle could have to either scan back really far or else give up. (I'm choosing to have it give up rather than scan unbounded.) But we could avoid all this if every time we set a new target release, we stored the previous distinct one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are good for learning the codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions