Skip to content

Reuse userId in all queries #7

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

Merged
merged 1 commit into from
Dec 5, 2018
Merged

Conversation

maskaravivek
Copy link
Member

@maskaravivek maskaravivek commented Dec 1, 2018

Fixes #8.

userId was being fetched a total of 5 times if feedback.py was called without any parameters ie. if all the statistics were queried.

I have extracted out the fetching of userId to a separate function and have started passing userId to the various functions instead of them querying the userId individually.

This should save us some time while trying to query all the statistics for a particular user.

@urbanecm
Copy link
Collaborator

urbanecm commented Dec 5, 2018

Yup, I agree. Merging :-)

@urbanecm urbanecm merged commit 39a3dbd into commons-app:master Dec 5, 2018
@urbanecm
Copy link
Collaborator

urbanecm commented Dec 5, 2018

FTR, I've deployed this change.

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