mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Improve series overview loading speed (#800)
## Description Improves loading speed for the series overview page (one with list of episodes). This is mostly accomplished by querying for the cast/crew in the episodes on demand instead of during the initial query. Also stops using the date as a replacement for the episode index. Using this caused an extra unnecessary (long) query. Going from home to the 109th of a 230 episode season is ~2x faster with this change on my test server. ### Related issues Closes #599
This commit is contained in:
parent
e7ed173692
commit
003fe8348c
2 changed files with 28 additions and 10 deletions
|
|
@ -72,8 +72,7 @@ data class BaseItem(
|
|||
@Transient
|
||||
val aspectRatio: Float? = data.primaryImageAspectRatio?.toFloat()?.takeIf { it > 0 }
|
||||
|
||||
@Transient
|
||||
val indexNumber = data.indexNumber ?: dateAsIndex()
|
||||
val indexNumber get() = data.indexNumber
|
||||
|
||||
val playbackPosition get() = data.userData?.playbackPositionTicks?.ticks ?: Duration.ZERO
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue