mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-06-22 10:02:15 +00:00
Table `package_blob` has both unique indexes, and standard indexes, defined on each of its hash columns. This PR removes the standard indexes and leaves just the unique indexes, which will reduce disk space usage and improve performance on writing to the table. Manual testing: confirmed that the indexes are removed by inspecting the database table in my dev environment before and after the migration. I've reviewed other database tables for similar situations where a unique index is present and non-unique indexes are present but therefore not needed. I've found no other cases. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12836 Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.codeberg.org> |
||
|---|---|---|
| .. | ||
| alpine | ||
| alt | ||
| conan | ||
| conda | ||
| container | ||
| cran | ||
| debian | ||
| nuget | ||
| rpm | ||
| descriptor.go | ||
| main_test.go | ||
| package.go | ||
| package_blob.go | ||
| package_blob_test.go | ||
| package_blob_upload.go | ||
| package_cleanup_rule.go | ||
| package_file.go | ||
| package_property.go | ||
| package_test.go | ||
| package_version.go | ||