mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 01:11:50 +02:00
Add an index on Host.host_name column (#1510)
* Add an index on Host.host_name column This field is queried during host creation and needs an index to speed up the query. Since Hibernate does not explicitly refer to indexes, we can change the code and schema in one PR.
This commit is contained in:
parent
4d08fadc11
commit
cdcdde2c96
7 changed files with 600 additions and 573 deletions
|
@ -34,6 +34,9 @@ import javax.persistence.AccessType;
|
|||
@ReportedOn
|
||||
@Entity
|
||||
@javax.persistence.Entity(name = "Host")
|
||||
@javax.persistence.Table(
|
||||
name = "Host",
|
||||
indexes = {@javax.persistence.Index(columnList = "hostName")})
|
||||
@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