Skip to content

Narrow ORM eager loading in materializations API - #2438

Draft
shangyian wants to merge 1 commit into
mainfrom
perf/materializations-hydration
Draft

Narrow ORM eager loading in materializations API#2438
shangyian wants to merge 1 commit into
mainfrom
perf/materializations-hydration

Conversation

@shangyian

Copy link
Copy Markdown
Collaborator

Summary

List-with-all-revisions and deactivate endpoints were loading the full NodeRevision.default_load_options() graph per historical revision just to read materializations. This change narrows both to just the materializations metadata (+ backfills where needed).

Test Plan

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 8c16094
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6a882f7b27fb210008a2ff0e

List-with-all-revisions and deactivate endpoints were loading the full
NodeRevision.default_load_options() graph (columns, catalog, parents,
dimension_links, etc.) per historical revision just to read
materializations. Narrow both to selectinload(materializations) (+
backfills where read) plus noload(created_by) to suppress its
lazy="selectin" default.
@shangyian
shangyian force-pushed the perf/materializations-hydration branch from 7b88e47 to 8c16094 Compare August 21, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant