-
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
feat: CE-1331 List View Performance Tuning #878
Conversation
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.
Are we able to force a cache refresh when someone changes roles on the admin page?
It's a bit weird because if you go in and update a user, but then go in and pull that user again, it looks like your updates haven't taken hold yet. They did eventually (although I'm not sure if I had to leave the application and came back, or if time alone was enough to trigger it)
migrations/migrations/R__view-cos-geo-org-flat-vw-definition-update1.sql
Outdated
Show resolved
Hide resolved
CREATE OR REPLACE TRIGGER geo_org_unit_structure_insert_update_refresh_vw | ||
AFTER INSERT OR UPDATE | ||
ON geo_org_unit_structure | ||
EXECUTE FUNCTION cos_geo_org_unit_flat_vw_refresh(); | ||
|
||
|
||
|
||
CREATE OR REPLACE TRIGGER geo_organization_unit_code_insert_update_refresh_vw | ||
AFTER INSERT OR UPDATE | ||
ON geo_organization_unit_code | ||
EXECUTE FUNCTION cos_geo_org_unit_flat_vw_refresh(); |
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.
This is great. This should cover all the cases.
Oh in the frontend... I was being clever and started a async refresh of the cache on changes but if the frontend is refreshing it right away I'll just clear it instead and they will just have to wait for the remote API to get fresh data |
Quality Gate passedIssues Measures |
Description
Fixes #CE-1331 https://env-ceds.atlassian.net/browse/CE-1331
How Has This Been Tested?
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: