mirror of
https://github.com/google/nomulus
synced 2026-09-12 19:16:25 +00: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user