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

@@ -262,7 +262,7 @@ async function fetchLatest(entity, page, options) {
.select('name')
.where('priority', '>', 7)
.orderByRaw('random()')
.limit(faker.datatype.number({ min: 2, max: 15 }))
.limit(faker.datatype.number({ min: 15, max: 25 }))
.pluck('name');
release.actors = [...actors(release), null]; // include empty actor to ensure proper handling