Skip to content

Conversation

@r4victor
Copy link
Collaborator

The PR optimizes code related to db queries to reduce the load on the db and fix issues with db sessions spikes when running multiple server replicas on small-to-medium Postgres instances:

  • Removes redundant queries (e.g. selecting creds, secrets, etc for already running job to pull status and logs).
  • Loads only the required attributes of related models (where this can be determined easily).

@r4victor r4victor merged commit 85d927e into master Jul 25, 2025
26 checks passed
@r4victor r4victor deleted the pr_optimize_db_queries branch July 25, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants