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

no-relationship-funcs flag added #1329

Closed
wants to merge 0 commits into from

Conversation

atzedus
Copy link

@atzedus atzedus commented Nov 22, 2023

This PR adds new model generation functionality with "no-relationship-funcs" flag.
This flag disable generation helper methods for model relationships loaders.
In some situations its better do disable this functionality, rather then getting N+1 problem on code reviews.

@stephenafamo
Copy link
Collaborator

This is a big change and I am reluctant to merge it because we will then have to maintain this flag indefinitely.

@atzedus
Copy link
Author

atzedus commented Nov 26, 2023

Well. This is a completely reasonable decision. The popularity of this feature is unknown. However, I would like to suggest leaving the template reorganization in the tests from this PR. This will make it possible to easily customize them to achieve the same effect by simply deleting the relationship files. If you accept this, thrn I will make changes soon.

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