Missing database index deleted_at column

Bug #1929563 reported by masterpe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Medium
masterpe

Bug Description

We are using Openstack Train

When using the command

./nova-manage db archive_deleted_rows --all-cells --verbose --before 2021-05-01 --max_rows 1000 --purge

This run takes 19 minutes, without the --before option, this command gets down to seconds.

It turns out when I look into the indexes of the tables I'm missing a index on the deleted_at column.

For example when I use the SQL command:
SHOW INDEX FROM nova.instances;
I'm missing the index.

Tags: nova-manage
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/nova/+/792989

Changed in nova:
status: New → In Progress
Changed in nova:
assignee: nobody → masterpe (michiel-y)
importance: Undecided → Medium
tags: added: nova-manage
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.