-
Notifications
You must be signed in to change notification settings - Fork 340
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
Fix N+1 queries in /api/v1/bed/
#1338
Labels
Comments
@sainak please assign this issue to me |
4 tasks
dhruv-goyal-10
added a commit
to dhruv-goyal-10/care
that referenced
this issue
Feb 26, 2024
Removed is_occupied property from Bed model as it is not used anywhere Annotated is_occupied field in the queryset instead of _is_occupied
vigneshhari
pushed a commit
that referenced
this issue
Mar 4, 2024
* Fixed N+1 queries issue in /api/v1/bed/ * Feat: PR review changes for issue #1338 Removed is_occupied property from Bed model as it is not used anywhere Annotated is_occupied field in the queryset instead of _is_occupied * Feat: PR review changes Changed is_occupied from SerializerMethodField to Boolean Field * Feat: PR Review Changes Annotated is_occupied field irrespective of action * Added the test case for listing beds API * add comment explaining number of queries --------- Co-authored-by: Aakash Singh <[email protected]>
Ashesh3
pushed a commit
that referenced
this issue
Mar 5, 2024
* Fixed N+1 queries issue in /api/v1/bed/ * Feat: PR review changes for issue #1338 Removed is_occupied property from Bed model as it is not used anywhere Annotated is_occupied field in the queryset instead of _is_occupied * Feat: PR review changes Changed is_occupied from SerializerMethodField to Boolean Field * Feat: PR Review Changes Annotated is_occupied field irrespective of action * Added the test case for listing beds API * add comment explaining number of queries --------- Co-authored-by: Aakash Singh <[email protected]>
Hi @sainak, I would like to work on this issue. |
@sainak Can u assign me this?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sentry Issue: CARE-KA
The text was updated successfully, but these errors were encountered: