ItEr60S12MellorasGlobalesRendementoItEr59S22: Corrected the index on the relation between CalendarData and BaseCalendar.
The indexed attribute was incorrect.
This commit is contained in:
parent
1f8c4202cf
commit
80a239417e
1 changed files with 10 additions and 2 deletions
|
|
@ -100,8 +100,7 @@
|
|||
</map>
|
||||
|
||||
<!-- Indexed -->
|
||||
<many-to-one name="parent" class="BaseCalendar" access="field"
|
||||
index="idx_CalendarData_on_BaseCalendar" />
|
||||
<many-to-one name="parent" class="BaseCalendar" access="field" />
|
||||
|
||||
<property name="expiringDate" access="field"
|
||||
type="org.joda.time.contrib.hibernate.PersistentLocalDate"/>
|
||||
|
|
@ -130,4 +129,13 @@
|
|||
<dialect-scope name="org.hibernate.dialect.PostgreSQLDialect" />
|
||||
<dialect-scope name="org.hibernate.dialect.MySQLInnoDBDialect" />
|
||||
</database-object>
|
||||
|
||||
<!-- Index to boost the search of CalendarData that hang from a BaseCalendar -->
|
||||
<database-object>
|
||||
<create>CREATE INDEX idx_CalendarData_on_BaseCalendar ON CalendarData (BASE_CALENDAR_ID)</create>
|
||||
<drop>DROP INDEX idx_CalendarData_on_BaseCalendar</drop>
|
||||
<dialect-scope name="org.hibernate.dialect.PostgreSQLDialect" />
|
||||
<dialect-scope name="org.hibernate.dialect.MySQLInnoDBDialect" />
|
||||
</database-object>
|
||||
|
||||
</hibernate-mapping>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue