Added indexes to scene tag and movie scene tables improve performance. Removed scene count from channel overview, too expensive.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -194,12 +194,6 @@ function initEntitiesActions(store, router) {
|
||||
url
|
||||
independent
|
||||
hasLogo
|
||||
children: childEntitiesConnection {
|
||||
totalCount
|
||||
}
|
||||
connection: scenesConnection {
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
}
|
||||
`, {
|
||||
|
||||
Reference in New Issue
Block a user