add index in order to be able to count unread entries without join

This commit is contained in:
Athou
2013-07-21 12:37:34 +02:00
parent 71d9d9aeea
commit e9cc6fd518
2 changed files with 8 additions and 1 deletions

View File

@@ -339,4 +339,11 @@
</createIndex>
</changeSet>
<changeSet author="athou" id="create-count-index">
<createIndex indexName="user_read_sub_index" tableName="FEEDENTRYSTATUSES">
<column name="user_id" />
<column name="read_status" />
<column name="subscription_id" />
</createIndex>
</changeSet>
</databaseChangeLog>