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

when there's no db changes, no need to call into auto_schema a second time #461

Merged
merged 1 commit into from
Sep 4, 2021

Conversation

lolopinto
Copy link
Owner

both paths are running the same code
https://github.com/lolopinto/ent/blob/main/python/auto_schema/auto_schema/runner.py#L185
https://github.com/lolopinto/ent/blob/main/python/auto_schema/auto_schema/runner.py#L258

so no reason to call this twice.

we just keep a flag in golang that we check and avoid the overhead a second time

way simpler than options presented at #453

… time

both paths are running the same code
https://github.com/lolopinto/ent/blob/main/python/auto_schema/auto_schema/runner.py#L185
https://github.com/lolopinto/ent/blob/main/python/auto_schema/auto_schema/runner.py#L258

so no reason to call this twice.

we just keep a flag in golang that we check and avoid the overhead a second time

way simpler than options presented at #453
@lolopinto lolopinto merged commit b5754d2 into main Sep 4, 2021
@lolopinto lolopinto deleted the skip-upgrade branch September 4, 2021 03:27
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.

None yet

1 participant