Skip to content

Commit

Permalink
Remove redundant join
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirVondukr committed Feb 29, 2024
1 parent 8bea798 commit 91385e6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/app/core/domain/manga/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@ async def execute(self, keys: Sequence[K]) -> Sequence[Sequence[V]]:


class MangaAltTitleLoader(SQLAListLoader[UUID, AltTitle]):
column = Manga.id
stmt = (
select(Manga.id, AltTitle)
.join(AltTitle.manga)
.order_by(AltTitle.language, AltTitle.id)
column = AltTitle.manga_id
stmt = select(AltTitle.manga_id, AltTitle).order_by(
AltTitle.language,
AltTitle.id,
)


Expand Down

0 comments on commit 91385e6

Please sign in to comment.