Skip to content

Make sure FlushRepoTask deletes all the entities related to Repository #1134

Closed
@giovanni-guidini

Description

After reviewing the FlushRepoTask it's clear that some objects that should be deleted are not being cleaned up. This task consists of making sure everything is properly deleted.

You'll notice that the task deletes things table by table instead of relying on cascades of the database. This is done to reduce the number of records deleted in each transaction, reducing the total time of the query. We've had issues with queries running too long before, so we prefer to have many queries that run faster.

This task list might not be complete, but includes known objects that need to be deleted within the task. Check the image below (pretty big) for the relationship of different tables that are related to repos.

Objects to add to FlushRepoTask

Preview Give feedback

postgres_ERdiagram

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions