1
0
mirror of https://github.com/google/nomulus synced 2026-01-06 21:47:31 +00:00

Add more indexes to speed up deleteProberDataAction (#2423)

This adds an index on transfer_billing_cancellation_id to Domain and superordinate_domain to Host. When tested on crash with the action limited to only delete 10,000 domains, before these indexes were added the action took about 2 hours to delete 10,000 domains. Once these indexes were added, the action was able to delete the 10,000 domains in a little under 2 minutes.
This commit is contained in:
sarahcaseybot
2024-05-01 11:44:08 -04:00
committed by GitHub
parent 03b358726a
commit e791608098
8 changed files with 67 additions and 7 deletions

View File

@@ -61,7 +61,8 @@ import org.joda.time.DateTime;
@Index(columnList = "lordnPhase"),
@Index(columnList = "billing_recurrence_id"),
@Index(columnList = "transfer_billing_event_id"),
@Index(columnList = "transfer_billing_recurrence_id")
@Index(columnList = "transfer_billing_recurrence_id"),
@Index(columnList = "transfer_billing_cancellation_id")
})
@WithVKey(String.class)
@ExternalMessagingName("domain")

View File

@@ -49,6 +49,7 @@ import javax.persistence.Table;
@Index(columnList = "creationTime"),
@Index(columnList = "deletionTime"),
@Index(columnList = "currentSponsorRegistrarId"),
@Index(columnList = "superordinateDomain")
})
@ExternalMessagingName("host")
@WithVKey(String.class)