diff --git a/ark_nova_stats/worker/archives.py b/ark_nova_stats/worker/archives.py index 4c4aff0b..966c7aec 100644 --- a/ark_nova_stats/worker/archives.py +++ b/ark_nova_stats/worker/archives.py @@ -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}")