gitlab-org--gitlab-foss/changelogs/unreleased/foreign-keys-for-project-model.yml
Yorick Peterse c63e322158
Add many foreign keys to the projects table
This removes the need for relying on Rails' "dependent" option for data
removal, which is _incredibly_ slow (even when using :delete_all) when
deleting large amounts of data. This also ensures data consistency is
enforced on DB level and not on application level (something Rails is
really bad at).

This commit also includes various migrations to add foreign keys to
tables that eventually point to "projects" to ensure no rows get
orphaned upon removing a project.
2017-07-06 12:01:36 +02:00

4 lines
124 B
YAML

---
title: Speed up project removals by adding foreign keys with cascading deletes to various tables
merge_request:
author: