Skip to content

index hell: 210 GB of space for indexes that the logs say are never used... #1296

Description

@tempcke

we had a lot of used space in our database and rather than increase the size we are paying for we decided to use AI to look for ways to trim things that are not needed and it found a number of indexes that are never used ... many of them from river.  it reported that these indexes existed and were using a lot of space but were never used.  My boss actually found this and just deleted the indexes so I can't look at them anymore but thought I should report it here in case there is some optimization that could be made in river.  right now I'm being scolded for using river ...

  • river_job_args_index (plus 30+ duplicate indexes _ccnew1 through _ccnew31): Size = 6.8 GB each (Totaling ~210 GB!), scans = 0

We re-deployed after they were deleted as I assumed the indexes would only come from migrations to confirm that they won't come back and they didn't however when I rgrep the code for 'ccnew' it doesn't look like these come from migrations and so I'm concerned. If these indexes come back I'm going to have a problem.

210 GB of space on indexes that the logs indicate are never used...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions