Skip to content

Conversation

@fricklerhandwerk
Copy link
Collaborator

@fricklerhandwerk fricklerhandwerk commented Jan 5, 2026

closes #661

  • requires bumping to Django 5
  • requires manual intervention on the DB to avoid stopping the world for ~20-30 min

@fricklerhandwerk fricklerhandwerk force-pushed the rename-suggestions-model branch from 1c64eba to 3a481be Compare January 5, 2026 13:08
@fricklerhandwerk fricklerhandwerk marked this pull request as draft January 5, 2026 13:10
@fricklerhandwerk fricklerhandwerk force-pushed the rename-suggestions-model branch 2 times, most recently from a9e40be to bce7f21 Compare January 5, 2026 14:53
@fricklerhandwerk fricklerhandwerk marked this pull request as ready for review January 5, 2026 14:54
@fricklerhandwerk fricklerhandwerk force-pushed the rename-suggestions-model branch 3 times, most recently from 2887043 to c641a00 Compare January 5, 2026 15:00
Needed for `CompositePrimaryKey` in order to save some space on bloated indexes.

The additional changes address breaking changes to APIs between Django 4 to Django 5.
This way we don't need the unused `id` index of the junction table, nor the one for `nixderivation_id`, since that's now covered by the composite primary key's first element.
Leaving the `nixderivationoutput_id`, since we still want to obtain reverse dependencies in the fugure.
@fricklerhandwerk fricklerhandwerk force-pushed the rename-suggestions-model branch from 2eea058 to 86daaaa Compare January 5, 2026 15:11
Copy link
Collaborator

@Erethon Erethon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as far as I understand. I'm running the create index concurrently part on the production instance right now, this shouldn't be merged to the production branch until the index creation has finished running.

@fricklerhandwerk fricklerhandwerk merged commit bfd02dd into NixOS:main Jan 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Index cleanup and maintenance

2 participants