mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 17:28:25 +02:00
Add 3 more SQL indexes to the Host table (#1559)
* Add 3 more SQL indexes to the Host table These indexes on creationTime, deletionTime, and currentSponsorRegistrarId are present on the other two EPP resource tables (Domain and Contact), and are useful for a wide variety of operations/analytics queries.
This commit is contained in:
parent
6dd6ebce75
commit
742ad0b37c
7 changed files with 815 additions and 705 deletions
|
@ -47,7 +47,12 @@ import javax.persistence.AccessType;
|
|||
* would prevent us from using JPA standard bootstrapping). For now, there is no obvious benefit
|
||||
* doing either.
|
||||
*/
|
||||
indexes = {@javax.persistence.Index(columnList = "hostName")})
|
||||
indexes = {
|
||||
@javax.persistence.Index(columnList = "hostName"),
|
||||
@javax.persistence.Index(columnList = "creationTime"),
|
||||
@javax.persistence.Index(columnList = "deletionTime"),
|
||||
@javax.persistence.Index(columnList = "currentSponsorRegistrarId")
|
||||
})
|
||||
@ExternalMessagingName("host")
|
||||
@WithStringVKey
|
||||
@Access(AccessType.FIELD) // otherwise it'll use the default if the repoId (property)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue