Skip to content

Remove unnecessary db indexes #1539

@MarceloRobert

Description

@MarceloRobert

Some indexes in the production database were created automatically by kcidb, but we don't need some of them considering that we don't use some fields in where conditions and the excess of indexes can degrade performance. Some of the kcidb indexes are also duplicates of django automatic indexes.

  • Issues:
    • issues_report_url
  • Checkouts:
    • checkouts_git_commit_hash_patchset_hash (we should still have an index on commit_hash alone with Create more indexes on dashboard db #1351, but we don't need an index on patchset_hash)
    • checkouts_git_repository_branch_tip
    • checkouts_origin_builds_finish_time
    • checkouts_origin_tests_finish_time
    • checkouts_start_time_idx (duplicate of checkouts_start_time)
    • checkouts_valid
  • Builds:
    • builds_checkout_id (duplicate of builds_checkout_id_e340e47e)
    • builds_checkout_id_idx (duplicate of builds_checkout_id_e340e47e)
  • Tests:
    • tests_build_id (duplicate of tests_build_id_551a24f9)
    • tests_number_unit
    • tests_number_value
    • tests_origin_start_time_idx
  • Incidents:
    • incidents_build_id (duplicate of incidents_build_id_dfa49727)
    • incidents_issue_id (duplicate of incidents_issue_id_5ef3a289)
    • incidents_present
    • incidents_test_id (duplicate of incidents_test_id_5d40ff84)

Metadata

Metadata

Labels

DatabaseIssue that alters only configs of a database itself

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions