Skip to content

Change [implicit] Lazy loading to be by TYPE rather than by PATH#3750

Open
rbygrave wants to merge 1 commit intomasterfrom
feature/lazy-load-byType-notPath
Open

Change [implicit] Lazy loading to be by TYPE rather than by PATH#3750
rbygrave wants to merge 1 commit intomasterfrom
feature/lazy-load-byType-notPath

Conversation

@rbygrave
Copy link
Copy Markdown
Member

We have some graph models where a common type (in the tests it is Label) is used in many different paths of the graph. When we are loading via path then all the loading of the Labels isn't in a single batch / load context but instead split into different load contexts PER PATH.

This change, means that lazy loading operates by TYPE instead of by PATH.

In the tests, all the Labels are read via a single lazy loading query rather that one lazy loading query per PATH, and this is more efficient.

We have some graph models where a common type (in the tests it is Label)
is used in many different *paths* of the graph. When we are loading via
*path* then all the loading of the Labels isn't in a single batch / load context
but instead split into different load contexts PER PATH.

This change, means that lazy loading operates by TYPE instead of by PATH.

In the tests, all the Labels are read via a single lazy loading query rather
that one lazy loading query per PATH, and this is more efficient.
@rbygrave rbygrave self-assigned this Apr 21, 2026
@rbygrave
Copy link
Copy Markdown
Member Author

FYI @nedge - lazy loading all the Labels together. Lazy loading by TYPE rather than by PATH.

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.

1 participant