Skip to content

Commit

Permalink
In Ark worker, just turn off eager loading (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaldengeki authored Sep 23, 2024
1 parent 66dfa49 commit 1ae98d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ark_nova_stats/worker/archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ def should_create_archive(self) -> bool:
return True

def game_logs(self) -> "sqlalchemy.orm.query.Query[GameLog]":
return GameLog.query.options(
joinedload(GameLog.game_ratings),
joinedload(GameLog.game_statistics),
joinedload(GameLog.users),
).yield_per(10)
return GameLog.query.yield_per(10)

def create_archive_tempfile(self, directory: str) -> tarfile.TarFile:
self.logger.info(f"Creating archive at: {self.filename}")
Expand Down

0 comments on commit 1ae98d2

Please sign in to comment.