Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change lazy loads from joined to selectin #8659

Merged
merged 1 commit into from
Feb 27, 2023
Merged

Change lazy loads from joined to selectin #8659

merged 1 commit into from
Feb 27, 2023

Conversation

jlowin
Copy link
Member

@jlowin jlowin commented Feb 26, 2023

Following best practice for performance, this PR changes SQLA lazy-loads from "joined" to "selectin". Joined loads can be better, especially for many-to-one relationships, but they rewrite the query in ways that can have performance implications for Prefect's typical use patterns. Selectin shows significant performances gains. See also https://github.com/PrefectHQ/nebula/pull/3840 and https://github.com/PrefectHQ/nebula/pull/3842.

@jlowin jlowin requested review from a team and zangell44 as code owners February 26, 2023 14:58
@netlify
Copy link

netlify bot commented Feb 26, 2023

Deploy Preview for prefect-docs ready!

Name Link
🔨 Latest commit 22d90c3
🔍 Latest deploy log https://app.netlify.com/sites/prefect-docs/deploys/63fb73ab06b6780008db4a41
😎 Deploy Preview https://deploy-preview-8659--prefect-docs.netlify.app/api-ref/server/models/flow_runs
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@zanieb zanieb merged commit b14daea into main Feb 27, 2023
@zanieb zanieb deleted the selectin branch February 27, 2023 16:16
ddelange added a commit to ddelange/prefect that referenced this pull request Mar 1, 2023
…aceful-agent

* 'patch-1' of https://github.com/ddelange/prefect: (25 commits)
  Enhancement: Track flow run id when generating task run results (PrefectHQ#8674)
  Fix loading of existing deployment descriptions from the server (PrefectHQ#8675)
  Update Dask logo (PrefectHQ#8669)
  Update `send_call` to `send_call_to_supervisor` (PrefectHQ#8653)
  Add Netlify Edge function to proxy to Segment (PrefectHQ#8657)
  Add security headers for docs (PrefectHQ#8655)
  Override analytics block instead of partial (PrefectHQ#8656)
  Add description flag to prefect deployment build CLI command (PrefectHQ#8603)
  Add support for yaml config strings to `KubernetesClusterConfig` (PrefectHQ#8643)
  Change lazy loads from joined to selectin (PrefectHQ#8659)
  Add timeout support to supervisors (PrefectHQ#8649)
  Minor markdown link fix in orchestration docs (PrefectHQ#8660)
  Allow more ports
  Bump @playwright/test from 1.30.0 to 1.31.1 in /ui (PrefectHQ#8663)
  Bump @prefecthq/prefect-ui-library from 1.1.9 to 1.1.10 in /ui (PrefectHQ#8661)
  Bump vite from 4.1.2 to 4.1.4 in /ui (PrefectHQ#8662)
  Bump eslint from 8.34.0 to 8.35.0 in /ui (PrefectHQ#8664)
  Fix of a typo - removed repeated word (PrefectHQ#8654)
  Enable DefaultAzureCredential authentication for Azure filesystem block (PrefectHQ#7513)
  Improve supervisor repr for debugging (PrefectHQ#8633)
  ...
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