Added indexes to scene tag and movie scene tables improve performance. Removed scene count from channel overview, too expensive.

This commit is contained in:
DebaucheryLibrarian
2022-01-24 00:15:11 +01:00
parent fc318536aa
commit 7ceec1c739
4 changed files with 21 additions and 9 deletions

View File

@@ -40,8 +40,11 @@
>{{ entity.name }}</span>
</div>
<span class="count">
<span>{{ entity.sceneTotal }} scenes</span>
<span
v-if="entity.childrenTotal > 0 || typeof entity.sceneTotal !== 'undefined'"
class="count"
>
<span v-if="typeof entity.sceneTotal !== 'undefined'">{{ entity.sceneTotal }} scenes</span>
<span v-if="entity.type === 'network'">{{ entity.childrenTotal }} channels</span>
</span>
</router-link>

View File

@@ -194,12 +194,6 @@ function initEntitiesActions(store, router) {
url
independent
hasLogo
children: childEntitiesConnection {
totalCount
}
connection: scenesConnection {
totalCount
}
}
}
`, {