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

Add database_collection to models #162

Merged
merged 1 commit into from
Feb 25, 2024
Merged

Add database_collection to models #162

merged 1 commit into from
Feb 25, 2024

Conversation

langalex
Copy link
Owner

This allows code using this library to detect and avoid n+1 requests when loading associated models:

If database_collection is set on a model, instead of loading just one associated model by its id, code should load all associated models for all models in database_collection.

this allows code using this library to detect and avoid n+1 requests when loading associated models:

if database_collection is set on a model, instead of loading just one associated model by its id, code should load all associated models for all models in database_collection.
@langalex langalex merged commit 7bd890f into 1.x Feb 25, 2024
7 checks passed
@langalex langalex deleted the database-collection branch February 25, 2024 16:44
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