-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactoring for reducing number of queries #188
Conversation
fd3ef1b
to
a5d1f11
Compare
195c2ee
to
4fa503c
Compare
I will add unit tests for the new two methods once we agree on the current refactoring. |
Excellent @renato2099 lets go through this tomorrow. I think this can be merged in after the PR for #181 |
I refactored the slack calls. Let's test out on Thursday. |
cf22b7d
to
60ce181
Compare
60ce181
to
9bace4e
Compare
2f06368
to
5479eaf
Compare
5479eaf
to
82dd848
Compare
Kudos, SonarCloud Quality Gate passed! |
Hey @lewismc I added a few unit tests I think we should merge this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 I have tested locally and all checks out. Tox tests pass for Python 3.9 and 3.10 locally and also the CI testing passes successfully. I will open a follow on ticket with something i noticed.
@lewismc this is a small refactoring such that in a second stage we can reduce the number of queries when checking global variables, i..e, instead for 1 SQL query per global attribute we can try to have just a few queries instead.
Another advantage is that we can batch the slack messages related to the metadata processing.