Skip to content

Commit

Permalink
Lazy load company for job post (used in scanning for opportunities)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrir committed Nov 8, 2024
1 parent 9877b49 commit 423f7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/db/models/job_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class JobPost(UUIDAuditBase):
# ORM Relationships
# ------------
company: Mapped[Company] = relationship(
lazy="noload",
lazy="select",
)

# Defer loading large fields
Expand Down

0 comments on commit 423f7cf

Please sign in to comment.